Add immutable rules to projects #270
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
name: Verify code generation integrity | |
on: pull_request | |
jobs: | |
verify: | |
name: Verify | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.20.1 | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20.1' | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Run code generation | |
run: make generate | |
- name: Test diff | |
run: | | |
git diff | cat | |
git status --porcelain=v1 | |
test $(git status --porcelain=v1 | wc -l) -eq 0 |