Skip to content

Canton v2.0.0

Canton v2.0.0 #2571

Workflow file for this run

name: Mocks Check
on:
push:
branches: [develop, main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
mocks:
name: Mocks up to date
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Install Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: Generate mocks
run: make mocks
- name: Check mocks are up to date
run: |
if ! git diff --quiet HEAD; then
echo "❌ Generated mocks are out of date. Run \`make mocks\` and commit the changes."
echo "❌ Generated mocks are out of date. Run \`make mocks\` and commit the changes:" >> $GITHUB_STEP_SUMMARY
git diff --name-only | while read -r n; do
echo "- $n" >> $GITHUB_STEP_SUMMARY
done
exit 1
fi