Merge pull request #490 from 14rcole/update-build-plrs #407
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: Code Coverage Report | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- name: Run Go Tests | |
run: | | |
# Temporarily adding a pact-go installation. | |
# It should be gone once https://issues.redhat.com/browse/HAC-4879 is solved | |
go get github.com/pact-foundation/pact-go/[email protected] | |
go install github.com/pact-foundation/pact-go/[email protected] | |
sudo /home/runner/go/bin/pact-go -l DEBUG install | |
go mod download | |
make test | |
- name: Codecov | |
uses: codecov/codecov-action@v3 |