Skip to content

Commit f709751

Browse files
committed
workflow to run test
1 parent a461939 commit f709751

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Run Frontend Test
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
environment:
17+
name: github-pages
18+
url: ${{ steps.deployment.outputs.page_url }}
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Setup Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
28+
- name: Setup pnpm
29+
uses: pnpm/action-setup@v3
30+
with:
31+
version: 9
32+
33+
- name: Install dependencies
34+
run: |
35+
cd frontend
36+
pnpm install
37+
38+
- name: tes5 frontend
39+
run: |
40+
cd frontend
41+
pnpm run test
42+
43+
44+
45+
46+
47+

0 commit comments

Comments
 (0)