Skip to content

Commit

Permalink
Add CI check for go mod tidy.
Browse files Browse the repository at this point in the history
  • Loading branch information
adlerjohn authored and Wondertan committed Jul 5, 2022
1 parent a618326 commit a392267
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/go-mod-tidy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Go Mod Tidy Check

on:
push:
branches:
- main
pull_request:
release:
types: [published]

env:
GO_VERSION: 1.18

jobs:
go_mod_tidy_check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}

- run: go mod tidy

- name: check for diff
run: git diff --exit-code

0 comments on commit a392267

Please sign in to comment.