-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add spotless check and build with tests
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [assigned, opened, synchronize, reopened] | ||
|
||
jobs: | ||
buildTest: | ||
name: Build CI | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java_version: [11, 17] | ||
distribution: ["temurin"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install JDK ${{ matrix.distribution }} ${{ matrix.java_version }} | ||
uses: actions/[email protected] | ||
with: | ||
distribution: ${{ matrix.distribution }} | ||
java-version: ${{ matrix.java_version }} | ||
cache: gradle | ||
- name: Build project | ||
run: ./gradlew build -x spotlessCheck | ||
spotless: | ||
name: Check Spotless | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java_version: [11] | ||
distribution: ["temurin"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install JDK ${{ matrix.distribution }} ${{ matrix.java_version }} | ||
uses: actions/[email protected] | ||
with: | ||
distribution: ${{ matrix.distribution }} | ||
java-version: ${{ matrix.java_version }} | ||
cache: gradle | ||
- name: Check spotless | ||
run: ./gradlew spotlessCheck |