fix: Update OAuth authentication URL host to www domain & Bump version to 0.2.2 #96
Workflow file for this run
This file contains hidden or 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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
merge_group: | |
permissions: write-all | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
name: test (Java ${{ matrix.java-version }} on ${{ matrix.os-label }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
java-version: [ "8", "11", "17" ] | |
os: [ "ubuntu-latest" ] | |
os-label: [ "Ubuntu" ] | |
include: | |
- { java-version: "11", os: "windows-latest", os-label: "Windows" } | |
- { java-version: "11", os: "macos-latest", os-label: "macOS" } | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.java-version }} | |
cache: 'maven' | |
- name: Code style check | |
run: mvn spotless:check | |
- name: Build and Test with Coverage | |
run: | | |
mvn -pl api clean test-compile | |
mvn -pl api test jacoco:report | |
- name: Debug Test Results (Unix) | |
if: runner.os != 'Windows' | |
run: | | |
echo "Test Results:" | |
find . -name "TEST-*.xml" -exec cat {} \; | |
echo "JaCoCo Report Location:" | |
ls -la api/target/site/jacoco/ | |
- name: Debug Test Results (Windows) | |
if: runner.os == 'Windows' | |
run: | | |
echo "Test Results:" | |
Get-ChildItem -Recurse -Filter "TEST-*.xml" | Get-Content | |
echo "JaCoCo Report Location:" | |
Get-ChildItem -Path "api\target\site\jacoco" -Force | |
- name: Generate JaCoCo Report | |
run: mvn -pl api jacoco:report | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./api/target/site/jacoco/jacoco.xml | |
flags: unittests | |
fail_ci_if_error: true | |
verbose: true | |
- name: Cache Maven packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-m2- | |
test_success: | |
# this aggregates success state of all jobs listed in `needs` | |
# this is the only required check to pass CI | |
name: "Test success" | |
if: always() | |
runs-on: ubuntu-latest | |
needs: [ test ] | |
steps: | |
- name: "Success" | |
if: needs.test.result == 'success' | |
run: true | |
shell: bash | |
- name: "Failure" | |
if: needs.test.result != 'success' | |
run: false | |
shell: bash | |
draft: | |
runs-on: ubuntu-latest | |
needs: test_success | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: release-drafter/release-drafter@v5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |