Skip to content

Merge pull request #43 from insightsengineering/add-parameter-to-publ… #198

Merge pull request #43 from insightsengineering/add-parameter-to-publ…

Merge pull request #43 from insightsengineering/add-parameter-to-publ… #198

Workflow file for this run

---
name: Test 🧪
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
name: Test action 🎬
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
reports:
- path: test-branch.xml
threshold: 80
fail: true
publish: false
diff: false
diff-branch: main
diff-storage: _xml_coverage_reports
coverage-summary-title: "Code Coverage Summary (test-branch.xml)"
exclude-detailed-coverage: false
- path: test-missing-lines.xml
threshold: 50
fail: false
publish: true
diff: false
diff-branch: main
diff-storage: _xml_coverage_reports_5
coverage-summary-title: "Code Coverage Summary (test-missing-lines.xml)"
exclude-detailed-coverage: false
- path: test-no-branch.xml
threshold: 90
fail: true
publish: true
diff: true
diff-branch: main
diff-storage: _xml_coverage_reports_1
coverage-summary-title: "Code Coverage Summary (test-no-branch.xml)"
exclude-detailed-coverage: false
- path: test-python.xml
threshold: 90
fail: false
publish: false
diff: true
diff-branch: main
diff-storage: _xml_coverage_reports_2
coverage-summary-title: "Code Coverage Summary (test-python.xml)"
exclude-detailed-coverage: false
- path: test-no-branch-2.xml
threshold: 90
fail: true
publish: true
diff: true
diff-branch: main
diff-storage: _xml_coverage_reports_3
coverage-summary-title: "Code Coverage Summary (test-no-branch.xml) without detailed coverage"
exclude-detailed-coverage: true
- path: test-missing-lines-2.xml
threshold: 50
fail: false
publish: true
diff: false
diff-branch: main
diff-storage: _xml_coverage_reports_4
coverage-summary-title: "Code Coverage Summary (test-missing-lines.xml) without detailed coverage"
exclude-detailed-coverage: true
steps:
- name: Checkout Code 🛎
uses: actions/checkout@v4
- name: Run test on ${{ matrix.reports.path }} 🏃‍♀️
uses: ./
with:
path: ./fixtures/${{ matrix.reports.path }}
threshold: ${{ matrix.reports.threshold }}
fail: ${{ matrix.reports.fail }}
publish: ${{ matrix.reports.publish }}
diff: ${{ matrix.reports.diff }}
diff-branch: ${{ matrix.reports.diff-branch }}
diff-storage: ${{ matrix.reports.diff-storage }}
coverage-summary-title: ${{ matrix.reports.coverage-summary-title }}
exclude-detailed-coverage: ${{ matrix.reports.exclude-detailed-coverage }}