[sherlock-build] generated from c19b115c4eb6db2e6ac068d8edd5ac6b1527bffc #602
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 }} |