Merge pull request #228 from pitest/227-rerunFailingTestsCount #735
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Maven | |
# This runs only on PR and on master | |
name: Java CI with Maven on Windows and Mac | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: ['macos-latest', 'windows-latest'] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Set up Maven | |
uses: stCarolas/setup-maven@v5 | |
with: | |
maven-version: 3.9.6 | |
- name: Cache Maven packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml', '**/*.yml', '**/*.target') }} | |
restore-keys: ${{ runner.os }}-m2- | |
- name: Build with Maven | |
run: mvn '-Dtycho.disableP2Mirrors=true' verify | |
- name: Archive Test Results | |
uses: actions/upload-artifact@v2 | |
if: ${{ failure() || cancelled() }} | |
with: | |
name: test-results-${{ runner.os }} | |
path: '**/*.tests/target' | |
- name: Archive UI Tests Screenshots | |
uses: actions/upload-artifact@v2 | |
if: ${{ failure() || cancelled() }} | |
with: | |
name: screenshots-${{ runner.os }} | |
path: '**/*.tests/screenshots' |