Debian Codegraph @

.github/workflows/build.yml

raw symbols SCIP
1 name: build
2
3 on:
4 push:
5 branches:
6 - main
7 pull_request:
8 branches:
9 - main
10
11 jobs:
12 run:
13 runs-on: ubuntu-latest
14
15 strategy:
16 matrix:
17 go: [1.21.x, 1.22.x]
18
19 steps:
20 - name: checkout source code
21 uses: actions/checkout@v4
22
23 - name: setup go environment
24 uses: actions/setup-go@v5
25 with:
26 go-version: ${{ matrix.go }}
27
28 - name: create go.mod
29 run: |
30 # Fix for "cannot find main module" issue
31 go mod init github.com/opencontainers/runtime-spec
32
33 go get -d ./schema/...
34
35 - name: run golangci-lint
36 uses: golangci/golangci-lint-action@v4
37 with:
38 version: v1.56.1
39 args: --verbose
40
41 - name: run tests
42 run: |
43 set -x
44 make install.tools
45
46 make .govet
47
48 make .gitvalidation
49 make docs
50 make -C schema test