Merge pull request #59 from siemens/develop #90
This file contains 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 and test' | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
buildandtest: | |
name: Test Build on Go ${{matrix.go}} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ 'stable', 'oldstable' ] | |
steps: | |
- name: Set up Go ${{matrix.go}} | |
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # pin@v4 | |
with: | |
go-version: ${{matrix.go}} | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # pin@v3 | |
- name: Set up nerdctl and CNI plugins | |
run: | | |
./scripts/setup-nerdctl-and-friends.sh | |
sudo nerdctl network create bridge # nerdctl issue #2321 | |
- name: Test build of Go packages | |
run: | | |
go test -v -p 1 -tags=matchers -exec sudo ./... | |
go test -v -p 1 -tags=matchers ./... |