Merge pull request #167 from containers/dependabot/go_modules/github.… #157
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: ci | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
- release-* | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: [1.20.x, 1.21.x] | |
race: ["-race", ""] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: install go ${{ matrix.go-version }} | |
uses: actions/setup-go@v2 | |
with: | |
stable: '!contains(${{ matrix.go-version }}, "beta") && !contains(${{ matrix.go-version }}, "rc")' | |
go-version: ${{ matrix.go-version }} | |
- name: install bats | |
uses: mig4/setup-bats@v1 | |
with: | |
bats-version: 1.4.1 | |
- name: build | |
run: make build EXTRA_BUILD_FLAGS="${{ matrix.race }}" | |
- name: unit tests | |
run: make test-unit EXTRA_TEST_FLAGS="${{ matrix.race }}" | |
- name: integration tests | |
run: make test-integration |