Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spotless check and build with tests #1477

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ ij_java_names_count_to_use_import_on_demand = 999

[*.xml.mustache]
indent_style = space

[*.{yml,yaml}]
indent_style = space
indent_size = 2
67 changes: 67 additions & 0 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
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/setup-java@v3.9.0
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java_version }}
cache: gradle
- name: Build project
run: ./gradlew build -x spotlessCheck -S
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
with:
fetch-depth: 0
- name: Install JDK ${{ matrix.distribution }} ${{ matrix.java_version }}
uses: actions/setup-java@v3.9.0
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java_version }}
cache: gradle
- name: Check spotless
run: ./gradlew spotlessCheck -S
buildTestOnWindows:
name: Build on Windows CI
runs-on: windows-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/setup-java@v3.9.0
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java_version }}
cache: gradle
- name: Build project
run: ./gradlew build -x spotlessCheck -S