nniclausse has launched CI process on 1/merge #1
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
name: Continuous Integration process | |
run-name: ${{ github.actor }} has launched CI process on ${{ github.ref_name }} | |
on: | |
push: | |
branches: | |
- "main" | |
- "develop" | |
pull_request: | |
branches: | |
- "main" | |
- "develop" | |
permissions: | |
contents: read | |
issues: read | |
checks: write | |
pull-requests: write | |
jobs: | |
Continuous-Integration-Actions: | |
runs-on: self-hosted | |
env: | |
PACKAGE_TOKEN: ${{ secrets.JLS_TOKEN }} | |
steps: | |
- name: Checkout of head | |
id: ci-sources-checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
id: ci-java-setup | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: 'temurin' | |
- name: Gradle build | |
id: ci-gradle-build | |
run: ./gradlew clean assemble | |
- name: Gradle tests | |
run: ./gradlew test | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action/linux@v2 | |
if: always() | |
with: | |
files: | | |
build/test-results/**/*.xml | |
- name: Get test artifacts | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Package | |
path: | | |
**/build/reports/ | |
**/build/test-results/ | |
- name: Final Step | |
id: ci-final-step | |
run: | | |
echo "This job's status is ${{ job.status }}." | |
echo "Created jar file(s):" | |
find ./build -name '*.jar' |