Skip to content

Commit

Permalink
add tests back to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
IanMoroney committed May 5, 2024
1 parent 6bcfb6a commit f6dc568
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- main
workflow_dispatch:

permissions:
actions: read
checks: write

jobs:
build-test:
name: Build & Test
Expand All @@ -26,3 +30,21 @@ jobs:
with:
name: test-results
path: __tests__/__results__/*.xml

- name: Create test report
uses: ./
with:
artifact: test-results
name: Workflow Report
path: '*.xml'
reporter: jest-junit

- name: Create mochawesome report
uses: ./
if: success() || failure()
with:
name: Mochawesome Tests
path: __tests__/fixtures/mochawesome-json.json
reporter: mochawesome-json
fail-on-error: false

1 change: 1 addition & 0 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

permissions:
actions: read
checks: write

jobs:
report:
Expand Down

0 comments on commit f6dc568

Please sign in to comment.