Skip to content

Commit

Permalink
chore: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma11hewThomas committed Oct 11, 2024
1 parent 6dd1b33 commit ebc044b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
run: node dist/index.js ai ctrf-reports/ctrf-report.json --title "AI Summary With Title"
- name: Test ai without title
run: node dist/index.js ai ctrf-reports/ctrf-report.json
- name: Test ai with suite name
run: node dist/index.js ai ctrf-reports/ctrf-report.json --use-suite-name
- name: Upload test results
uses: actions/upload-artifact@v4
with:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/exit-on-fail.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: detailed

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
testing:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Build
run: npx tsc
- name: Test detailed with title
run: node dist/index.js tests ctrf-reports/ctrf-report.json --exit-on-fail
if: always()
- name: Test default no title
run: node dist/index.js ctrf-reports/ctrf-report.json --annotate false --exit-on-fail
if: always()
- name: Test skipped with title
run: node dist/index.js skipped ctrf-reports/ctrf-report.json --exit-on-fail
if: always()
- 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

0 comments on commit ebc044b

Please sign in to comment.