Skip to content

Commit 5332282

Browse files
committed
Add jest-stare for test report
1 parent 1e00528 commit 5332282

2 files changed

Lines changed: 31 additions & 42 deletions

File tree

.github/workflows/deno.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/test-report.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run Jest and Publish Test Report
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: '20'
17+
- name: Install Dependencies
18+
run: npm ci
19+
- name: Run Jest Tests
20+
run: npm run test
21+
- name: Upload Test Report
22+
uses: actions/upload-artifact@v4
23+
with:
24+
name: jest-stare-report
25+
path: jest-stare/
26+
- name: Deploy to GitHub Pages
27+
uses: peaceiris/actions-gh-pages@v4
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: jest-stare
31+

0 commit comments

Comments
 (0)