[sherlock-build] generated from 5a52d48c128a8e9887d849f8634502991a40d884 #605
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: Test Sherlock | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
# Don't run this workflow concurrently on the same branch | |
group: ${{ github.workflow }}-${{ github.ref }} | |
# For PRs, don't wait for completion of existing runs, cancel them instead | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: "sherlock/go.mod" | |
- name: Install pact-go | |
run: make install-pact | |
- name: Run tests | |
run: make test-with-coverage | |
- name: Upload coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
files: go-shared/cover.out,sherlock/cover.out | |
token: ${{ secrets.CODECOV_TOKEN }} |