Debian Codegraph @

.github/workflows/test.yaml

raw symbols SCIP
1 name: test
2 on: [push, pull_request]
3 jobs:
4 test:
5 strategy:
6 matrix:
7 go-version: [1.22.x, 1.23.x]
8 os: [ubuntu-latest]
9 runs-on: ${{ matrix.os }}
10 steps:
11 - name: Install Go
12 uses: actions/setup-go@v5
13 with:
14 go-version: ${{ matrix.go-version }}
15 - name: Checkout code
16 uses: actions/checkout@v4
17 with:
18 submodules: true
19 - name: Test go fmt
20 run: test -z $(go fmt ./...)
21 - name: Golangci-lint
22 uses: golangci/golangci-lint-action@v6
23 with:
24 only-new-issues: true
25 - name: Test coverage
26 run: go test -covermode atomic -coverprofile='profile.cov' ./...
27 - name: Send coverage
28 if: runner.os == 'Linux'
29 env:
30 COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31 run: |
32 go install github.com/mattn/goveralls@latest
33 $(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
34
35 - name: Fuzz tests
36 run: make fuzz