Fix deployment failures (#350) #97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Formatting | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
formatter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Set up Node + Yarn | |
uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
- name: Set up Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Install JS Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Warm up Gradle | |
run: yarn gradle | |
- name: Lint Formatting | |
run: yarn format | |
- name: Display Changes | |
run: git diff | |
- name: Check for Changes | |
run: git diff --exit-code --name-only |