Skip to content

Commit

Permalink
Modules lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeah committed Mar 26, 2024
1 parent 93026ea commit 4785259
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ name: "SSAS CI Workflow"
on: [push]

jobs:
lint:
name: Modules Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Tidy modules
run: |
go mod tidy -v
CHANGES_FOUND=$(git diff-files --quiet)
if [[ "$(CHANGES_FOUND)" == "1" ]]; then
echo "Changes found. Run go mod tidy to clean up modules."
git diff
exit 1
fi
build:
name: "Build and Test"
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4785259

Please sign in to comment.