Skip to content

Commit

Permalink
testing saving test output as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Dec 14, 2023
1 parent 5d7f27f commit 295818c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/mocha_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ jobs:
- name: Install Playwright browsers
run: npx playwright install && npx playwright install-deps
- name: Run Mocha tests
run: npm test # alias to "mocha test"
run: npm test > mocha_${{ matrix.browser }}_test.md # alias to "mocha test"
env:
BROWSER: ${{ matrix.browser }}
TEST_ENV: "node"
TEST_ENV: "node"
- uses: actions/upload-artifact@v3
if: always()
with:
name: mocha_${{ matrix.browser }}_test.md
path: mocha_${{ matrix.browser }}_test.md
retention-days: 30
2 changes: 1 addition & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@types/node": "^20.10.3"
},
"scripts": {
"test": "mocha"
"test": "mocha --reporter=markdown"
},
"type": "module",
"dependencies": {
Expand Down

0 comments on commit 295818c

Please sign in to comment.