Debian Codegraph @

.github/workflows/go.yml

raw
1 name: Go test and lint
2
3 on:
4 push:
5 branches: [ main ]
6 pull_request:
7 branches: [ main, Proton ]
8
9 permissions: {}
10
11 jobs:
12 test:
13 name: Test with latest golang
14 runs-on: ubuntu-latest
15 steps:
16 - name: Check out repo
17 uses: actions/checkout@v6
18
19 - name: Set up latest golang
20 uses: actions/setup-go@v6
21 with:
22 go-version: '^1.18'
23
24 - name: Test
25 run: go test -v -race ./...
26
27 lint:
28 name: Lint
29 runs-on: ubuntu-latest
30 steps:
31 - uses: actions/setup-go@v6
32 with:
33 go-version: '1.23'
34 - uses: actions/checkout@v6
35 - name: golangci-lint
36 uses: golangci/golangci-lint-action@v3
37 with:
38 version: v1.64.5