Skip to content

Commit 87e7638

Browse files
committed
feat(e2e): add end-to-end testing workflow for Naga, pkpSign for now.
1 parent 14b4185 commit 87e7638

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/e2e.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: E2E Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
inputs:
8+
naga_branch:
9+
description: 'Branch for Naga tests'
10+
required: true
11+
default: 'master'
12+
env:
13+
LIT_STATUS_WRITE_KEY: ${{ secrets.LIT_STATUS_WRITE_KEY }}
14+
LIT_STATUS_BACKEND_URL: ${{ vars.LIT_STATUS_BACKEND_URL }}
15+
LIVE_MASTER_ACCOUNT: ${{ vars.LIVE_MASTER_ACCOUNT }}
16+
jobs:
17+
naga-e2e-tests:
18+
runs-on: ubuntu-latest
19+
environment: Health Check
20+
steps:
21+
- name: Setup Bun
22+
uses: oven-sh/setup-bun@v1
23+
with:
24+
bun-version: latest
25+
26+
- name: Install rust
27+
uses: actions-rs/toolchain@v1
28+
with:
29+
toolchain: stable
30+
override: true
31+
components: rust-std
32+
33+
- name: Install wasm-pack
34+
uses: jetli/[email protected]
35+
with:
36+
version: 'latest'
37+
38+
- name: Install Bun dependencies
39+
run: bun install
40+
41+
- name: Build project
42+
run: bun run build
43+
44+
- name: Run health check for naga-dev
45+
run: NETWORK=naga-dev bun run test:e2e pkpSign
46+
47+
- name: Run health check for naga-staging
48+
run: NETWORK=naga-staging bun run test:e2e pkpSign
49+
50+
- name: Run health check for naga-local
51+
run: NETWORK=naga-local bun run test:e2e pkpSign

0 commit comments

Comments
 (0)