Skip to content

Merge branch 'refs/heads/3.x' into pr/gh-2823 #1

Merge branch 'refs/heads/3.x' into pr/gh-2823

Merge branch 'refs/heads/3.x' into pr/gh-2823 #1

Workflow file for this run

name: CI
on: [push, pull_request]
env:
MAVEN_ARGS: -B -V -ntp -e -Djansi.passthrough=true -Dstyle.color=always
jobs:
test_os:
name: OS ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
cache: 'maven'
- name: Test
run: ./mvnw $MAVEN_ARGS verify
javadoc:
name: Javadoc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
cache: 'maven'
- name: Generate Javadoc
run: ./mvnw $MAVEN_ARGS -DskipTests package javadoc:javadoc
sonar:
name: Sonar code analysis
runs-on: ubuntu-latest
if: github.repository == 'assertj/assertj' && github.event_name == 'push'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
cache: 'maven'
- name: Test with Sonar
run: >
./mvnw $MAVEN_ARGS verify sonar:sonar
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=assertj
-Dsonar.projectKey=joel-costigliola_assertj-core
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}