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