Skip to content

Commit

Permalink
docs: minor improv
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma11hewThomas committed Oct 31, 2024
1 parent 6c69b75 commit 3fb72ee
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 13 deletions.
40 changes: 28 additions & 12 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- '**'
schedule:
- cron: '0 2 * * *'
- cron: '*/5 * * * *'

jobs:
testing:
Expand All @@ -21,18 +21,34 @@ jobs:
run: npm install
- name: Build
run: npx tsc
- name: Test all
run: node dist/index.js ctrf-reports/ctrf-report.json --title All
if: github.event_name != 'schedule'
- name: Test summary
run: node dist/index.js summary ctrf-reports/ctrf-report.json --title Summary
if: github.event_name != 'schedule'
- name: Test no fails or flaky
run: node dist/index.js ctrf-reports/ctrf-report-no-fails.json
if: github.event_name != 'schedule'
- name: Test schedule context
run: node dist/index.js ctrf-reports/ctrf-report.json
if: github.event_name == 'schedule'
run: node dist/index.js summary ctrf-reports/ctrf-report.json
- name: Test historical
run: node dist/index.js historical ctrf-reports/ctrf-report.json --annotate false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test suite folded
run: node dist/index.js suite-folded ctrf-reports/ctrf-report.json --annotate false
- name: Test failed
run: node dist/index.js failed ctrf-reports/ctrf-report.json --annotate false
- name: Test failed rate
run: node dist/index.js failed-rate ctrf-reports/ctrf-report.json --annotate false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test failed folded
run: node dist/index.js failed-folded ctrf-reports/ctrf-report.json --annotate false
- name: Test flaky
run: node dist/index.js flaky ctrf-reports/ctrf-report.json --annotate false
- name: Test flaky rate
run: node dist/index.js flaky-rate ctrf-reports/ctrf-report.json --annotate false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test ai
run: node dist/index.js ai ctrf-reports/ctrf-report.json --annotate false
- name: Test skipped
run: node dist/index.js skipped ctrf-reports/ctrf-report.json --annotate false
- name: Test custom summary
run: node dist/index.js custom ctrf-reports/ctrf-report.json templates/custom-summary.hbs --annotate false
- name: Upload test results
uses: actions/upload-artifact@v4
with:
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,10 @@ npm run report

![Flaky](images/flaky-rate.png)

### Skipped

![Flaky](images/skipped.png)

### Suite folded

![Suite folded](images/suite-folded.png)
Expand All @@ -548,7 +552,7 @@ npm run report

### Custom Summary

Coming soon!
![Custom](images/custom.png)

## What is CTRF?

Expand Down
Binary file added images/skipped.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3fb72ee

Please sign in to comment.