-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (39 loc) · 1.12 KB
/
ci.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: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
strategy:
matrix:
go-version: [1.20.x]
full-tests: [false]
include:
- go-version: 1.20.x
full-tests: true
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20.7' # TODO: fix matrix
cache: true
- name: Checkout code
uses: actions/checkout@v3
- name: Linting
if: matrix.full-tests
run: |
curl -sL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh |
sh -s -- -b $HOME/go/bin v1.53.3
$HOME/go/bin/golangci-lint run --timeout=30m \
--max-issues-per-linter 0 \
--max-same-issues 0 \
./...
- name: Testing
continue-on-error: ${{ matrix.go-version == 'tip' }}
run: |
go version
export GORACE="halt_on_error=1"
go test -v -race ./...