Merge pull request #236 from SolaceDev/fix/consumer-errorsBaseName #462
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 and test a Java project with Maven | |
name: Test | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
jobs: | |
dupe_check: | |
name: Check for Duplicate Workflow Run | |
runs-on: ubuntu-latest | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/[email protected] | |
with: | |
concurrent_skipping: same_content | |
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]' | |
build: | |
name : Build & Test | |
needs: | |
- dupe_check | |
if: needs.dupe_check.outputs.should_skip != 'true' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache local Maven repository | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-test-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven-test- | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: zulu | |
java-version: 17 | |
- name: Build and run Tests | |
run: mvn clean verify | |
- name: Upload Test Artifacts | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Test Results | |
path: | | |
**/target/failsafe-reports/*.xml | |
**/target/surefire-reports/*.xml | |
- name: Publish Unit Test Results | |
if: ${{ !cancelled() && (github.actor != 'dependabot[bot]' || (github.event_name == 'push' && !contains(github.ref, 'dependabot'))) }} | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
continue-on-error: true | |
with: | |
fail_on: nothing | |
junit_files: | | |
**/target/failsafe-reports/*.xml | |
!**/target/failsafe-reports/failsafe-summary.xml | |
**/target/surefire-reports/*.xml |