Skip to content

Merge pull request #1268 from mikepenz/feature/1262 #1495

Merge pull request #1268 from mikepenz/feature/1262

Merge pull request #1268 from mikepenz/feature/1262 #1495

Workflow file for this run

name: 'CI'
on:
push:
tags:
- '*'
pull_request:
workflow_dispatch:
jobs:
build:
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install NPM
run: |
npm install
- name: Run NPM
run: |
npm run all
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test:
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Test JUnit test import
uses: ./
with:
check_name: Example JUnit Test Report
report_paths: '**/surefire-reports/TEST-*.xml'
include_passed: true
detailed_summary: true
summary: '<table><thead><tr><th> Application (src/applications) </th></tr></thead><tbody><tr><td> test </td></tr></tbody></table>'
check_title_template: '{{SUITE_NAME}} | {{TEST_NAME}}'
annotate_only: ${{ github.event_name == 'workflow_dispatch' }}
- name: Test PyTest test import
uses: ./
with:
check_name: Example Pytest Report
report_paths: test_results/python/report_flaky.xml
include_passed: true
detailed_summary: true
comment: true
annotate_only: ${{ github.event_name == 'workflow_dispatch' }}
- name: Test JUnit flaky test import
uses: ./
with:
check_name: Example JUnit Flaky Report
report_paths: test_results/junit-web-test/expectedRetries.xml
include_passed: true
check_retries: true
job_summary: true
detailed_summary: true
flaky_summary: true
annotate_only: ${{ github.event_name == 'workflow_dispatch' }}
- name: Test Multi test import
uses: ./
with:
check_name: |-
Example Multi JUnit Test Report
Example Multi Pytest Report
report_paths: |-
**/surefire-reports/TEST-*.xml
test_results/python/report.xml
summary: |-
<table><thead><tr><th> Application (src/applications) </th></tr></thead><tbody><tr><td> multi test </td></tr></tbody></table>
Custom Summary
check_title_template: |-
{{SUITE_NAME}} | {{TEST_NAME}}
\n
transformers: |
[{"searchValue":"::","replaceValue":"/"}]
annotate_only: ${{ github.event_name == 'workflow_dispatch' }}
- name: Test Nested JUnit test import
uses: ./
with:
check_name: Example Nested JUnit Test Report
report_paths: 'test_results/nested/multi-level.xml'
include_passed: true
detailed_summary: true
group_suite: true
comment: true
skip_annotations: true
check_title_template: '{{TEST_NAME}}'
annotate_only: ${{ github.event_name == 'workflow_dispatch' }}
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: "Build Changelog"
id: github_release
uses: mikepenz/release-changelog-builder-action@v5
with:
configuration: ".github/config/configuration.json"
ignorePreReleases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: mikepenz/action-gh-release@v1
with:
body: ${{steps.github_release.outputs.changelog}}
prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-b') || contains(github.ref, '-a') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}