...
1name: Render and Lint Documentation
2
3on:
4 pull_request:
5 branches_ignore: []
6
7jobs:
8 build:
9 runs-on: ubuntu-latest
10 strategy:
11 matrix:
12 go: ['1.19', '1.20', '1.21']
13
14 name: Documentation and Linting
15 steps:
16
17 - uses: actions/checkout@v3
18 with:
19 path: go/src/github.com/opencontainers/image-spec
20
21 - uses: actions/setup-go@v3
22 with:
23 go-version: ${{ matrix.go }}
24
25 - name: Render and Lint
26 env:
27 GOPATH: /home/runner/work/image-spec/image-spec/go
28 # do not automatically upgrade go to a different version: https://go.dev/doc/toolchain
29 GOTOOLCHAIN: local
30 run: |
31 export PATH=$GOPATH/bin:$PATH
32 cd go/src/github.com/opencontainers/image-spec
33 make install.tools
34 go get -t -d ./...
35 ls ../
36 make
37 make .gitvalidation
38 make lint
39 make check-license
40 make test
41 make docs
42
43 - name: documentation artifacts
44 uses: actions/upload-artifact@v3
45 with:
46 name: oci-docs
47 path: go/src/github.com/opencontainers/image-spec/output
View as plain text