-
Notifications
You must be signed in to change notification settings - Fork 13
60 lines (58 loc) · 2.44 KB
/
main.yaml
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
name: main
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
schedule:
- cron: '0 2 * * *'
jobs:
testing:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Summary table
run: node dist/core/cli.js summary ctrf-reports/ctrf-report.json --title "Summary table"
- name: Historical table
run: node dist/core/cli.js historical ctrf-reports/ctrf-report.json --annotate false --title "Previous results table"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Suite folded table
run: node dist/core/cli.js suite-folded ctrf-reports/ctrf-report.json --annotate false --title "Suite folded table"
- name: Failed table
run: node dist/core/cli.js failed ctrf-reports/ctrf-report.json --annotate false --title "Failed table"
- name: Failed rate table
run: node dist/core/cli.js failed-rate ctrf-reports/ctrf-report.json --annotate false --title "Fail rate table"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Failed folded table
run: node dist/core/cli.js failed-folded ctrf-reports/ctrf-report.json --annotate false --title "Fail folded table"
- name: Flaky table
run: node dist/core/cli.js flaky ctrf-reports/ctrf-report.json --annotate false --title "flaky table"
- name: Flaky rate table
run: node dist/core/cli.js flaky-rate ctrf-reports/ctrf-report.json --annotate false --title "Flaky rate table"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: AI table
run: node dist/core/cli.js ai ctrf-reports/ctrf-report.json --annotate false --title "AI table"
- name: Skipped table
run: node dist/core/cli.js skipped ctrf-reports/ctrf-report.json --annotate false --title "Skipped table"
- name: Custom
run: node dist/core/cli.js custom ctrf-reports/ctrf-report.json templates/custom-summary.hbs --annotate false --title "Custom"
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: ctrf-report
path: ctrf-reports/ctrf-report.json
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: custom-artifact-name
path: ctrf-reports/ctrf-report-no-fails.json