Skip to content

Commit

Permalink
Add a 'verify.sh' script to be the 'run-build' command
Browse files Browse the repository at this point in the history
Ideally running a build is just a gradle command, but
to even make that easy, we have 'verify.sh'
  • Loading branch information
DanVanAtta committed Jun 6, 2024
1 parent 92e6bbe commit 0cb2772
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# We skip 'spotlessApply' such that only 'spotlessCheck' will run to validate formatting.
# This is a good setup for a CI server, meanwhile if a developer runs 'verify', they
# will have the 'spotlessApply' task run to automatically format the code.
run: ./verify --exclude-task spotlessApply
run: ./verify.sh --exclude-task spotlessApply

# - name: Load SSH private key into ssh-agent
# uses: webfactory/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ triplea.github.access.token=CHANGE_ME
## Building

```
./gradlew check
./verify.sh
```

## Running
Expand Down
7 changes: 7 additions & 0 deletions verify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

scriptDir="$(dirname "$0")"
set -o pipefail
set -eu

"$scriptDir/gradlew" spotlessApply check $@

0 comments on commit 0cb2772

Please sign in to comment.