Mockery update & porcelain checking. #11
Workflow file for this run
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
# All code generation should be run prior to pull request. Running it again should not produce a diff. | |
name: "Codegen Verifier" | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'ccip-develop' | |
jobs: | |
codegen-verifier: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
go-version: ['1.21'] | |
defaults: | |
run: | |
working-directory: . | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install Mockery | |
run: go install github.com/vektra/mockery/[email protected] | |
- name: Display Go version | |
run: go version | |
- name: Generate mocks | |
run: make generate | |
- name: ensure no changes | |
run: | | |
git status --porcelain=v1 && { echo "Error: modified files detected, run 'make generate'."; exit 1; } |