generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 127
88 lines (81 loc) · 2.78 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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@v4
with:
configuration: ".github/config/configuration.json"
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 }}