Skip to content

Commit

Permalink
Run spotless on PR
Browse files Browse the repository at this point in the history
We recently added Java code to this package to support performance
tests. To ensure we maintain a high bar for code quality, we enabled
spotless and in this commit, we enable running spotless on all PRs.
  • Loading branch information
thpierce committed Feb 26, 2024
1 parent 9b5d68f commit 8313398
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/pr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- main
- "release/v*"
push:
branches:
- perf

env:
AWS_DEFAULT_REGION: us-east-1
Expand Down Expand Up @@ -66,4 +69,25 @@ jobs:
run_unit_tests: false

- name: Run ${{ matrix.tox-environment }} with tox
run: tox -e ${{ matrix.tox-environment }}
run: tox -e ${{ matrix.tox-environment }}

spotless:
runs-on: ubuntu-latest
steps:
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Gradle validation
uses: gradle/wrapper-validation-action@v1

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin

- name: Setup Gradle
uses: gradle/gradle-build-action@v3

- name: Build with Gradle
run: cd performance-tests; ./gradlew spotlessCheck

0 comments on commit 8313398

Please sign in to comment.