Skip to content

Publish Scorecard SARIF results #117

Publish Scorecard SARIF results

Publish Scorecard SARIF results #117

Workflow file for this run

name: CI
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
permissions:
contents: read
jobs:
category-tests:
name: Test (${{ matrix.category }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- category: smoke
groups: smoke
- category: integration
groups: integration
- category: property
groups: property
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Set up JDK
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: temurin
java-version: 21
cache: maven
- name: Run categorized tests
run: mvn -B test --file pom.xml -Dgroups='${{ matrix.groups }}'
verify:
name: Maven Verify (JDK ${{ matrix.java }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ '17', '21' ]
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Set up JDK
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: maven
- name: Build and test
run: mvn -B verify --file pom.xml
- name: Upload Surefire reports
if: matrix.java == '21'
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: surefire-reports-${{ matrix.java }}
path: target/surefire-reports
- name: Upload JaCoCo report
if: matrix.java == '21'
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: jacoco-report-${{ matrix.java }}
path: target/site/jacoco
if-no-files-found: warn
- name: Upload coverage to Codecov
if: matrix.java == '21'
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
files: target/site/jacoco/jacoco.xml
fail_ci_if_error: false
verbose: true