Run GitHub action with node20 #1114
Workflow file for this run
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: | |
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@v3 | |
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.xml | |
include_passed: true | |
detailed_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: Install NPM | |
run: | | |
npm install | |
- name: Run NPM | |
run: | | |
npm run all | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
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@v3 | |
with: | |
configuration: ".github/config/configuration.json" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Release | |
uses: softprops/action-gh-release@6034af24fba4e5a8e975aaa6056554efe4c794d0 | |
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 }} |