Debian Codegraph @

.github/workflows/go.yml

raw symbols SCIP
1 name: Go
2
3 on: [push, pull_request]
4
5 jobs:
6 lint:
7 runs-on: ubuntu-latest
8 steps:
9 - uses: actions/checkout@v4
10
11 - name: Set up Go
12 uses: actions/setup-go@v5
13 with:
14 go-version: "1.22"
15
16 - name: Install goimports
17 run: |
18 go install golang.org/x/tools/cmd/goimports@latest
19 export PATH="$HOME/go/bin:$PATH"
20
21 - name: Install pre-commit
22 run: pip install pre-commit
23
24 - name: Lint
25 run: pre-commit run -a
26
27 build:
28 runs-on: ubuntu-latest
29 strategy:
30 fail-fast: false
31 matrix:
32 go-version: ["1.21", "1.22"]
33
34 steps:
35 - uses: actions/checkout@v4
36
37 - name: Set up Go ${{ matrix.go-version }}
38 uses: actions/setup-go@v5
39 with:
40 go-version: ${{ matrix.go-version }}
41
42 - name: Install libolm
43 run: sudo apt-get install libolm-dev libolm3
44
45 - name: Build
46 run: go build -v ./...
47
48 - name: Test
49 run: go test -v ./...