Debian Codegraph @

.github/workflows/test.yml

raw
1 name: Test
2
3 on:
4 push:
5 branches:
6 - main
7 pull_request:
8
9 permissions:
10 contents: read
11
12 jobs:
13 build:
14 strategy:
15 fail-fast: false
16 matrix:
17 go-version:
18 - 1.26.x
19 - 1.27.x
20 os: [ubuntu-latest, macos-latest]
21 runs-on: ${{ matrix.os }}
22
23 steps:
24 - name: Set up Go
25 uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
26 with:
27 go-version: ${{ matrix.go-version }}
28 id: go
29
30 - name: Check out code into the Go module directory
31 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
32
33 - name: Run tests
34 run: go test -race ./...