Skip to content

Commit 34181bb

Browse files
committed
Create github action
1 parent 425c73c commit 34181bb

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/dojo-e2e.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: e2e
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
e2e:
11+
name: E2E Tests
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '22'
22+
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: 9.0.0
27+
28+
- name: Setup pnpm cache
29+
uses: actions/cache@v4
30+
with:
31+
path: ~/.local/share/pnpm/store
32+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
33+
restore-keys: |
34+
${{ runner.os }}-pnpm-store-
35+
36+
- name: Install dependencies
37+
working-directory: typescript-sdk
38+
run: pnpm install --frozen-lockfile
39+
40+
- name: Prepare dojo for e2e
41+
working-directory: typescript-sdk/apps/dojo
42+
run: node ./scripts/prep-dojo-everything.js -e2e
43+
44+
- name: Run dojo e2e tests
45+
working-directory: typescript-sdk/apps/dojo
46+
run: node ./scripts/run-dojo-everything.js -e2e

0 commit comments

Comments
 (0)