Skip to content

Commit

Permalink
Add GitHub workflow to check formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott-Guest committed Dec 4, 2023
1 parent 17f2c27 commit f40ff37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fi
format-check:
name: 'Check Java code formatting'
name: 'Check code formatting'
runs-on: ubuntu-latest
needs: version-sync
steps:
Expand All @@ -40,12 +40,14 @@ jobs:
token: ${{ secrets.JENKINS_GITHUB_PAT }}
# fetch-depth 0 means deep clone the repo
fetch-depth: 0
- name: 'Check Scala code is formatted correctly'
uses: AvaPL/scalafmt-native-formatter@v0
- name: 'Set up Java 17'
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: 'Check code is formatted correctly'
- name: 'Check Java code is formatted correctly'
uses: axel-op/googlejavaformat-action@v3
with:
version: v1.18.1
Expand Down

0 comments on commit f40ff37

Please sign in to comment.