Skip to content

RAT-570: Create Reporter.Output object #3641

RAT-570: Create Reporter.Output object

RAT-570: Create Reporter.Output object #3641

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: GitHub CI
on:
push:
branches:
- master
# branches-ignore:
# - dependabot/**
pull_request:
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
# RAT-497: JDK17/18/19-javadoc error fails the site build, albeit javadoc:javadoc works fine, https://bugs.java.com/bugdatabase/view_bug?bug_id=JDK-8369613
# Due to RAT-497 we skip javadoc and site generation with JDK17!
java: [17, 20, 21, 25]
fail-fast: false
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}-JDK${{ matrix.java }}
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Configure artifact caching
uses: actions/cache@v6
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with Maven
run: ./mvnw -e -B -V -ntp clean install
- name: Archive integration failure
uses: actions/upload-artifact@v7
if: failure()
with:
name: reporting-integration-test-failure-logs-${{ matrix.os }}-JDK${{ matrix.java }}-PR${{ github.run_id }}
retention-days: 3
path: |
apache-rat-core/target/test-classes/ReportTest/**
- name: Archive test failure
uses: actions/upload-artifact@v7
if: failure()
with:
name: test-failure-logs-${{ matrix.os }}-JDK${{ matrix.java }}-PR${{ github.run_id }}
retention-days: 3
path: |
**/target/surefire-reports
- name: Generate javadoc
if: ${{ matrix.java != 17}}
run: ./mvnw -e -B -V -ntp javadoc:javadoc
- name: Build site
if: ${{ matrix.java != 17}}
run: ./mvnw -e -B -V -ntp site site:stage