Update Konflux references #417
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: Go tests | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
jobs: | |
gotests: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
go-version: | |
- "1.20" | |
- "1.21" | |
name: Tests for Go ${{ matrix.go-version}} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Unit tests | |
run: env | |
- name: Retrieve code coverage | |
run: go test -coverprofile coverage.out $(go list ./... | grep -v tests) | |
- name: Display code coverage | |
run: go tool cover -func=coverage.out |