Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: ci
2
3 permissions:
4 contents: read
5
6 on:
7 push:
8 branches:
9 - master
10 pull_request:
11
12 jobs:
13 test:
14 strategy:
15 matrix:
16 go-version: [1.23.x,1.24.x,1.25.x]
17 os: [ubuntu-latest, macos-latest, windows-latest, ubuntu-24.04-arm]
18 runs-on: ${{ matrix.os }}
19 steps:
20 - name: Install Go
21 uses: actions/setup-go@331ce1d993939866bb63c32c6cbbfd48fa76fc57 # v2.1.4
22 with:
23 go-version: ${{ matrix.go-version }}
24 - name: Checkout code
25 uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
26 with:
27 persist-credentials: false
28 - name: Test
29 run: go test -v ./...
30
31 gen:
32 runs-on: ubuntu-latest
33 steps:
34 - name: Install Go
35 uses: actions/setup-go@331ce1d993939866bb63c32c6cbbfd48fa76fc57 # v2.1.4
36 with:
37 go-version: 1.25.x
38 - name: Checkout code
39 uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
40 with:
41 persist-credentials: false
42 - name: vet
43 run: go vet ./...
44 - name: fmt
45 run: gofmt -w .
46 - name: generate
47 working-directory: avo
48 run: go generate -v -x
49 - name: Git Status
50 run: |
51 git diff
52 test -z "$(git status --porcelain)"