Skip to content

Issue #13307: Added support for multiple violation lines in test input files #7

Issue #13307: Added support for multiple violation lines in test input files

Issue #13307: Added support for multiple violation lines in test input files #7

Workflow file for this run

name: Error-Prone
on:
push:
branches:
- master
pull_request:
branches: '*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
error-prone:
if: github.repository == 'checkstyle/checkstyle'
runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Install groovy
run: sudo apt install groovy
- name: Checkout
uses: actions/checkout@v3
- name: Setup local maven cache
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: checkstyle-maven-cache-${{ hashFiles('**/pom.xml') }}
- name: Execute Error-Prone on compile phase
run: groovy ./.ci/error-prone-check.groovy compile
# Require to compile again in case previous step fails and sources are not compiled
- name: Do a clean compile
if: always()
run: mvn -e --no-transfer-progress clean compile
- name: Execute Error-Prone on test-compile phase
if: always()
run: groovy ./.ci/error-prone-check.groovy test-compile