Skip to content

Merge pull request #156 from containers/dependabot/go_modules/github.… #137

Merge pull request #156 from containers/dependabot/go_modules/github.…

Merge pull request #156 from containers/dependabot/go_modules/github.… #137

Workflow file for this run

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