Merge pull request #587 from ava-labs/dependabot/go_modules/github.co… #1
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: Mock Checker | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
generated_code: | |
name: generated_code | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: "go.mod" | |
- name: Generate code | |
run: | | |
scripts/generate.sh | |
- name: Print diff | |
run: git --no-pager diff | |
- name: Fail if diff exists | |
run: git --no-pager diff --quiet |