-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (38 loc) · 1.02 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Run Tests
on: push
jobs:
test:
name: Run Tests
runs-on: depot-ubuntu-22.04-4
env:
CGO_ENABLED: 0
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Go Init
uses: ./.github/actions/go_init
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Go Test
run: |
go run main.go --version
go test -v -timeout 5m ./...
golangci:
name: lint
runs-on: depot-ubuntu-22.04-4
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Go Init
uses: ./.github/actions/go_init
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.56.1
args: --timeout 3m
skip-pkg-cache: true # golangci-lint-action caching conflicts with the setup-go cache and `go get` above. See https://github.com/golangci/golangci-lint-action/issues/23