Debian Codegraph @

.github/workflows/test.yml

raw
1 on:
2 push:
3 branches: [master]
4 pull_request:
5
6 # Workaround for SHA1 on Go 1.18. There are some kinks to be worked out. See
7 # the tracking issue for more info: https://github.com/golang/go/issues/41682
8 env:
9 GODEBUG: x509sha1=1
10
11 name: Test
12 jobs:
13 test-linux:
14 strategy:
15 matrix:
16 go-version: [1.24.x]
17 runs-on: ubuntu-latest
18 steps:
19 - name: Install Go
20 uses: actions/setup-go@v6
21 with:
22 go-version: ${{ matrix.go-version }}
23 - name: Checkout code
24 uses: actions/checkout@v6
25 - name: Test
26 run: go test ./...
27 test-macos:
28 strategy:
29 matrix:
30 go-version: [1.24.x]
31 runs-on: macos-latest
32 steps:
33 - name: Install Go
34 uses: actions/setup-go@v6
35 with:
36 go-version: ${{ matrix.go-version }}
37 - name: Checkout code
38 uses: actions/checkout@v6
39 # See https://github.com/google/go-tpm-tools#macos-dev
40 - name: Test
41 run: C_INCLUDE_PATH="$(brew --prefix [email protected])/include" LIBRARY_PATH="$(brew --prefix [email protected])/lib" go test ./...
42 test-windows:
43 strategy:
44 matrix:
45 go-version: [1.24.x]
46 runs-on: windows-latest
47 steps:
48 - name: Install Go
49 uses: actions/setup-go@v6
50 with:
51 go-version: ${{ matrix.go-version }}
52 - name: Checkout code
53 uses: actions/checkout@v6
54 - name: Test
55 run: go build ./...