-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c540fca
commit ffed5f2
Showing
1 changed file
with
69 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,69 @@ | ||
|
||
# Continuous Integration | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
build: | ||
|
||
name: Build on JDK${{ matrix.jdk }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
jdk: [ 21 ] | ||
|
||
steps: | ||
|
||
# ================================ | ||
# SHALLOW CLONE | ||
# ================================ | ||
- name: Shallow clone | ||
uses: actions/checkout@v4 | ||
|
||
# ================================ | ||
# VALIDATE GRADLE WRAPPER | ||
# ================================ | ||
- name: Validate Gradle Wrapper files | ||
uses: gradle/actions/wrapper-validation@v3 | ||
|
||
# ================================ | ||
# SET UP JDK | ||
# ================================ | ||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-package: jdk | ||
java-version: ${{ matrix.jdk }} | ||
|
||
# ================================ | ||
# SET UP GRADLE | ||
# ================================ | ||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
build-scan-publish: true | ||
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use" | ||
build-scan-terms-of-use-agree: "yes" | ||
cache-read-only: ${{ github.ref_name != 'main' && github.ref_name != 'develop' }} | ||
|
||
# ================================ | ||
# BUILD | ||
# ================================ | ||
- name: Build | ||
run: ./gradlew build -x check | ||
|
||
# ================================ | ||
# CHECK | ||
# ================================ | ||
- name: Check | ||
run: ./gradlew check |