Skip to content

Bump ossf/scorecard-action from 2.4.0 to 2.4.3 #94

Bump ossf/scorecard-action from 2.4.0 to 2.4.3

Bump ossf/scorecard-action from 2.4.0 to 2.4.3 #94

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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Set up JDK
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Set up JDK
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
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@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: surefire-reports-${{ matrix.java }}
path: target/surefire-reports
- name: Upload JaCoCo report
if: matrix.java == '21'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
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@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5
with:
files: target/site/jacoco/jacoco.xml
fail_ci_if_error: false
verbose: true