diff options
author | TymanWasTaken <tyman@tyman.tech> | 2021-07-07 21:34:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 21:34:35 -0400 |
commit | 9b7f5fdd1ec3b651ba9a1fa1121e8d41262e9c95 (patch) | |
tree | 6113fe6e7a896cde1742da0392fc0621912fc025 /.github | |
parent | dabee21244cdcacc9b49b2ee0d006876970e6001 (diff) | |
download | SkyblockHud-Death-Defied-9b7f5fdd1ec3b651ba9a1fa1121e8d41262e9c95.tar.gz SkyblockHud-Death-Defied-9b7f5fdd1ec3b651ba9a1fa1121e8d41262e9c95.tar.bz2 SkyblockHud-Death-Defied-9b7f5fdd1ec3b651ba9a1fa1121e8d41262e9c95.zip |
Add prettier to the github workflow
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 21ab056..7d3fa30 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,6 @@ on: workflow_dispatch: jobs: build: - runs-on: ubuntu-latest steps: @@ -39,4 +38,23 @@ jobs: with: path: build/libs/*.jar - name: Stop gradle daemons - run: ./gradlew --stop
\ No newline at end of file + run: ./gradlew --stop + + Check-Formating: + runs-on: ubuntu-lates + name: Check Formatting + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Prettify the Java Code + uses: lwerner-lshigh/prettier_action_java@v1.1.1 + with: + prettier_options: '--no-semi --write *.java' + branch: ${{ github.head_ref }} + dry: ${{ github.event_name != 'push' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |