This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
Update README.md #99
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: CI - Build Snapshot Version | |
on: | |
push: | |
branches: | |
- main | |
- release/* | |
workflow_dispatch: | |
jobs: | |
build-snapshot-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Setup Android SDK | |
uses: bitfunk/[email protected] | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-home-cache-cleanup: true | |
- name: Build | |
run: ./gradlew --no-daemon --stacktrace build | |
- name: Upload Test Report | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: junit-test-results | |
path: '**/build/test-results/test/TEST-*.xml' | |
retention-days: 1 | |
- name: Analyze | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
run: ./gradlew --no-daemon --stacktrace testCodeCoverageReport sonarqube | |
- name: Publish documentation | |
env: | |
GRGIT_USER: ${{ github.actor }} | |
GRGIT_PASS: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew --no-daemon --stacktrace mkdocsPublish | |
- name: Publish Lastest Version | |
run: echo "TODO" | |
build-snapshot-version-test-report: | |
name: "Publish Test Report" | |
runs-on: ubuntu-latest | |
needs: build-snapshot-version | |
permissions: | |
checks: write | |
if: always() | |
steps: | |
- name: Download Test Report | |
uses: actions/download-artifact@v3 | |
with: | |
name: junit-test-results | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v3 | |
with: | |
commit: ${{github.event.workflow_run.head_sha}} | |
report_paths: '**/build/test-results/test/TEST-*.xml' |