Release v1.3.0 #262
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # our oldest (officially) supported version and the two upstream-supported versions | |
| go: [1.21.x, oldstable, stable] | |
| env: | |
| # avoid downloading any alternate toolchains (https://go.dev/doc/toolchain) | |
| GOTOOLCHAIN: local | |
| 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@v8 | |
| with: | |
| version: v2.5 | |
| - name: run tests | |
| run: | | |
| set -x | |
| make install.tools | |
| make .govet | |
| make .gitvalidation | |
| make docs | |
| make -C schema test |