-
-
Notifications
You must be signed in to change notification settings - Fork 18
48 lines (40 loc) · 1 KB
/
frameworkTesting.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
name: frameworkTesting
run-name: Test Converters
on:
push:
branches:
- main
paths:
- "src/**"
pull_request:
branches:
- main
paths:
- "src/**"
jobs:
run-converter-tests:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
- run: npm install
- run: npm run test
- name: Convert code coverage results
uses: irongut/[email protected]
with:
filename: coverage/*.xml
badge: true
format: 'markdown'
output: 'file'
- name: Add code coverage PR comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
- name: Write to job summary
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY