Skip to content

Commit

Permalink
[ignore] Added generated code diff check
Browse files Browse the repository at this point in the history
  • Loading branch information
samiib committed May 3, 2024
1 parent 51d4ff1 commit 7440f41
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,19 @@ jobs:
- name: Build
run: go build -v

# diff:
# name: Check Generated Code Difference
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version-file: 'go.mod'
# - name: Generate provider code
# run: go generate
# - name: Check generated code for diffs
# run: git diff --exit-code
diff:
name: Check Generated Code Difference
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: export GOFLAGS="-mod=mod"
- name: Generate provider code
run: go generate
- name: Check generated code for diffs
run: git diff --exit-code

acceptance:
name: Acceptance Tests
Expand Down

0 comments on commit 7440f41

Please sign in to comment.