Skip to content

Commit

Permalink
github: Regenerate mocks before running unit tests
Browse files Browse the repository at this point in the history
Ensures committed mock files are up-to-date.
  • Loading branch information
Matthew Barnes committed Jan 17, 2025
1 parent 368ac89 commit 6d2ab42
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ jobs:
go-version-file: 'go.work'
check-latest: true

- name: 'Regenerate mocks'
run: |
make mocks
if [[ ! -z "$(git status --short)" ]]
then
echo "there are some modified files"
git status
exit 1
fi
- name: 'Test'
run: JOB_ID=${{ github.job }} PRINCIPAL_ID=${{ secrets.GHA_PRINCIPAL_ID }} make test

Expand Down

0 comments on commit 6d2ab42

Please sign in to comment.