From ebc044beab248bef7020f66b5ffb5d9407f5ed08 Mon Sep 17 00:00:00 2001 From: Matthew Thomas Date: Fri, 11 Oct 2024 20:12:25 +0100 Subject: [PATCH] chore: testing --- .github/workflows/ai.yaml | 2 ++ .github/workflows/exit-on-fail.yaml | 39 +++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/exit-on-fail.yaml diff --git a/.github/workflows/ai.yaml b/.github/workflows/ai.yaml index 899b2fb9..20ca7e0c 100644 --- a/.github/workflows/ai.yaml +++ b/.github/workflows/ai.yaml @@ -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: diff --git a/.github/workflows/exit-on-fail.yaml b/.github/workflows/exit-on-fail.yaml new file mode 100644 index 00000000..893e3498 --- /dev/null +++ b/.github/workflows/exit-on-fail.yaml @@ -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