Debian Codegraph @

.github/workflows/unit-tests.yml

raw symbols SCIP
1 name: unit-tests
2 on:
3 push:
4 pull_request:
5 branches:
6 - master
7
8 # ensure testing on actual specified versions, and not auto-upgraded toolchain
9 # versions
10 env:
11 GOTOOLCHAIN: local
12
13 jobs:
14 build:
15 name: Build
16 strategy:
17 matrix:
18 goVer: ["1.16.x", "1.22.x"]
19 platform: [ubuntu-latest]
20 runs-on: ${{ matrix.platform }}
21 steps:
22 - name: Src Checkout
23 uses: actions/checkout@v4
24 with:
25 fetch-depth: 1
26
27 - name: Setup Go ${{ matrix.goVer }}
28 uses: actions/setup-go@v5
29 with:
30 go-version: ${{ matrix.goVer }}
31 id: go
32
33 - name: Tests
34 env:
35 GO111MODULE: "on"
36 GOPROXY: "https://proxy.golang.org"
37 run: go test -v -cpu=1,2 ./...