Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: CI
2 on: [push, pull_request]
3
4 jobs:
5 build:
6 runs-on: ubuntu-latest
7 strategy:
8 matrix:
9 go: [ '1.23', '1.24' ]
10 name: Go ${{ matrix.go }} test
11 steps:
12 - name: Checkout repository
13 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14 - name: Cache Go modules
15 uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
16 with:
17 path: |
18 ~/go/pkg/mod
19 ~/.cache/go-build
20 ~/.cache/bazel
21 key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
22 restore-keys: |
23 ${{ runner.os }}-go-
24 - name: Install Go stable version
25 uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
26 with:
27 go-version: ${{ matrix.go }}
28 check-latest: true
29 - name: Test
30 run: go test -v -race ./...
31