Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add workflow to ensure go.mod files are tidied #3025

Merged
merged 3 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/mod-tidy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Ensure go.mods are tidied

on:
push:
branches:
- master
workflow_dispatch:
pull_request:

jobs:
main:
name: Ensure go.mods are tidied
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go-version }}

- name: Checkout code
uses: actions/checkout@v4

- name: Check go.mod files are up to date
working-directory: ${{ inputs.modulepath }}
run: |
make tidy VERIFY_GO_SUMS=true
3 changes: 3 additions & 0 deletions tm2/pkg/amino/tests/proto3/proto/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file ensures there is at least one go file in this dir at all times.

package proto3
Loading