Skip to content

feat(ci): skip duplicate reports #23

feat(ci): skip duplicate reports

feat(ci): skip duplicate reports #23

Workflow file for this run

on:
push:
pull_request:
workflow_dispatch:
name: πŸ§ͺ Continuous Integration
jobs:
ci:
runs-on: ubuntu-latest
container: fedora:38
steps:
- name: πŸ—οΈ Setup Dependencies
run: |
dnf install -y java-17-openjdk maven git
- name: πŸ“₯ Checkout
uses: actions/checkout@v3
- name: πŸ› οΈ Checkout Workaround
# The Checkout GitHub action has problems when running inside of a docker container (as we do).
# see: https://github.com/actions/checkout/issues/363
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: πŸ§ͺ Unit Tests
run: |
mvn test -Dtest="CucumberUnitTest" -Dsurefire.failIfNoSpecifiedTests=false
- name: πŸ§ͺ Integration Tests
run: |
mvn test -Dtest="CucumberIntegrationTest" -Dsurefire.failIfNoSpecifiedTests=false
- name: πŸ” Check for duplicate reports
id: skip
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: "always"
- name: πŸ“‹ Unit Test Report
uses: phoenix-actions/test-reporting@v8
if: steps.skip.should_skip != 'true' && (success() || failure())
with:
name: πŸ“‹ Unit Test Report
reporter: java-junit
path: "**/*CucumberUnitTest.xml"
- name: πŸ“‹ Integration Test Report
uses: phoenix-actions/test-reporting@v8
if: steps.skip.should_skip != 'true' && (success() || failure())
with:
name: πŸ“‹ Integration Test Report
reporter: java-junit
path: "**/*CucumberIntegrationTest.xml"