Skip to content

Commit

Permalink
ci: Improve tidiness check
Browse files Browse the repository at this point in the history
Avoid fragile change directory with a sub-shell and improve
documentation.
  • Loading branch information
nirs committed Nov 22, 2024
1 parent 319b99a commit 01892af
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ramen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,15 @@ jobs:
- name: Run linters
run: ./hack/pre-commit.sh

- name: Check that generated files were not modified
- name: Check tidiness
# Check that modules are tidy, and that generated files were not
# modified by the pull request. Both validated by empty diff.
run: |
make generate
make manifests
go mod tidy
cd ./e2e/
go mod tidy
cd ../api
go mod tidy
cd ..
(cd e2e && go mod tidy)
(cd api && go mod tidy)
git --no-pager diff
git diff-index --quiet HEAD
Expand Down

0 comments on commit 01892af

Please sign in to comment.