Skip to content

Commit

Permalink
chore: workflow to check that go mod tidy is run (zarf-dev#2963)
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
Signed-off-by: ittacco <[email protected]>
  • Loading branch information
AustinAbro321 authored and ittacco committed Oct 18, 2024
1 parent 3a79feb commit c6d0654
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/check-go-mod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check for go mod changes
on:
pull_request:
merge_group:

permissions:
contents: read

jobs:
validate-go-mod:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup golang
uses: ./.github/actions/golang

- name: Test go mod
run: |
go mod tidy
git diff --exit-code go.mod go.sum

0 comments on commit c6d0654

Please sign in to comment.