-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (37 loc) · 983 Bytes
/
ci.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
name: CI Job to Generate JUnit Report
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
generate-report:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Make Shell Script Executable
run: chmod +x scripts/generate_input.sh
- name: Run Shell Script to Generate Input File
run: |
./scripts/run_commit_tests.sh
- name: Run JUnit Report Generation Script
run: |
python scripts/into_junit.py /tmp/SHARED.UNITS > junit.xml
- name: Upload JUnit Report
uses: actions/upload-artifact@v3
with:
name: junit-report
path: junit.xml
- name: Display JUnit Test Results
uses: dorny/test-reporter@v1
with:
name: 'JUnit Results'
path: 'junit.xml'
reporter: 'junit'