infra: filter duplicated resources #185
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
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
install: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
jdk: [11, 17] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 50 | |
- name: Setup local maven cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: maven-cache-${{ hashFiles('**/pom.xml') }} | |
- name: Set up JDK ${{ matrix.jdk }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.jdk }} | |
- name: Build with Maven | |
run: ./mvnw --errors --no-transfer-progress install | |
- name: Difference Check | |
run: ./.ci/validation.sh git-diff | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
# we only want to attach test results one time, not for every matrix combination | |
if: startsWith(matrix.platform, 'ubuntu') && (matrix.jdk == 17) | |
with: | |
files: '**/target/surefire-reports/*.xml' | |