Debian Codegraph @

.github/workflows/go.yml

raw symbols SCIP
1 name: Go
2
3 on:
4 push:
5 branches: [ master ]
6 pull_request:
7 branches: [ master ]
8
9 permissions:
10 contents: read
11
12 jobs:
13
14 build:
15 name: Build + Test Stable
16 runs-on: ubuntu-latest
17 env:
18 GO111MODULE: auto
19 steps:
20 - name: Build
21 uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
22 with:
23 go-version: '1.26.x'
24
25 - name: Check out code into the Go module directory
26 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
27
28 - name: Build
29 run: go build -v ./...
30
31 - name: Test
32 run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic
33
34 - name: Coverage
35 uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
36 env:
37 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
38
39 build-legacy:
40 name: Build + Test Previous Stable
41 runs-on: ubuntu-latest
42 env:
43 GO111MODULE: auto
44 steps:
45 - name: Build
46 uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
47 with:
48 go-version: '1.25.x'
49
50 - name: Check out code into the Go module directory
51 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
52
53 - name: Build
54 run: go build -v ./...
55
56 - name: Test
57 run: go test ./...