Skip to content

Commit

Permalink
Add spotless check and build with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eirnym committed Jan 9, 2023
1 parent 13f10ca commit 657a502
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build-ci.yml
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

0 comments on commit 657a502

Please sign in to comment.