-
-
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.
Merge pull request #32 from teogor/ci/add-github-action-build
Implement GitHub Action for Automated Build Process
- Loading branch information
Showing
4 changed files
with
98 additions
and
10 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,75 @@ | ||
name: Code Quality CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
lint: | ||
name: Spotless check | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4.1.7 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v4.2.2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Make Gradle executable | ||
run: chmod +x ./gradlew | ||
|
||
- name: spotless | ||
run: ./gradlew spotlessCheck | ||
|
||
api_check: | ||
name: API check | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4.1.7 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v4.2.2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Make Gradle executable | ||
run: chmod +x ./gradlew | ||
|
||
- name: API check | ||
run: ./gradlew apiCheck | ||
|
||
build: | ||
name: Build and Tests | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
|
||
- name: set up JDK | ||
uses: actions/setup-java@v4.2.2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Cache Gradle and wrapper | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Make Gradle executable | ||
run: chmod +x ./gradlew | ||
|
||
- name: Build with Gradle | ||
run: | | ||
./gradlew build |
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
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
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