Skip to content

Commit b4f7340

Browse files
committed
feat(e2e): add separate workflows for Naga Dev, Staging, and Test environments
1 parent a51b88f commit b4f7340

File tree

3 files changed

+115
-13
lines changed

3 files changed

+115
-13
lines changed

.github/workflows/e2e-naga-dev.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: E2E - Naga Dev
2+
3+
on:
4+
push:
5+
branches:
6+
- naga
7+
- canary-naga
8+
pull_request:
9+
env:
10+
LIVE_MASTER_ACCOUNT: ${{ secrets.LIVE_MASTER_ACCOUNT_NAGA_DEV }}
11+
LOCAL_MASTER_ACCOUNT: ${{ secrets.LOCAL_MASTER_ACCOUNT }}
12+
LOG_LEVEL: debug2
13+
14+
jobs:
15+
naga-e2e-tests:
16+
runs-on: ubuntu-latest
17+
environment: Health Check
18+
steps:
19+
# ==================== Base Env Setup ====================
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Install rust
24+
uses: actions-rs/toolchain@v1
25+
with:
26+
toolchain: stable
27+
override: true
28+
components: rust-std
29+
30+
- name: Install wasm-pack
31+
uses: jetli/[email protected]
32+
with:
33+
version: 'latest'
34+
35+
- name: Setup Node
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: '22.18.0'
39+
registry-url: 'https://registry.npmjs.org'
40+
41+
- name: Setup PNPM
42+
uses: pnpm/action-setup@v4
43+
with:
44+
version: 9.15.0
45+
46+
- name: Install Dependencies
47+
run: pnpm install --frozen-lockfile
48+
49+
# ==================== Run Build ====================
50+
- name: Build
51+
run: pnpm build
52+
53+
# ==================== Run Tests ====================
54+
- name: Run health check for naga-dev
55+
run: NETWORK=naga-dev pnpm run test:e2e:ci all
56+
timeout-minutes: 10

.github/workflows/e2e.yml renamed to .github/workflows/e2e-naga-staging.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: E2E Tests
1+
name: E2E - Naga Staging
22

33
on:
44
push:
@@ -7,11 +7,9 @@ on:
77
- canary-naga
88
pull_request:
99
env:
10-
LIT_STATUS_WRITE_KEY: ${{ secrets.LIT_STATUS_WRITE_KEY }}
11-
LIT_STATUS_BACKEND_URL: ${{ vars.LIT_STATUS_BACKEND_URL }}
12-
LIVE_MASTER_ACCOUNT: ${{ secrets.LIVE_MASTER_ACCOUNT }}
10+
LIVE_MASTER_ACCOUNT: ${{ secrets.LIVE_MASTER_ACCOUNT_NAGA_STAGING }}
1311
LOCAL_MASTER_ACCOUNT: ${{ secrets.LOCAL_MASTER_ACCOUNT }}
14-
LOG_LEVEL: info
12+
LOG_LEVEL: debug2
1513

1614
jobs:
1715
naga-e2e-tests:
@@ -53,14 +51,6 @@ jobs:
5351
run: pnpm build
5452

5553
# ==================== Run Tests ====================
56-
- name: Run health check for naga-dev
57-
run: NETWORK=naga-dev pnpm run test:e2e:ci all
58-
timeout-minutes: 10
59-
60-
- name: Run health check for naga-test
61-
run: NETWORK=naga-test pnpm run test:e2e:ci all
62-
timeout-minutes: 10
63-
6454
- name: Run health check for naga-staging
6555
run: NETWORK=naga-staging pnpm run test:e2e:ci all
6656
timeout-minutes: 10
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: E2E - Naga Test
2+
3+
on:
4+
push:
5+
branches:
6+
- naga
7+
- canary-naga
8+
pull_request:
9+
env:
10+
LIVE_MASTER_ACCOUNT: ${{ secrets.LIVE_MASTER_ACCOUNT_NAGA_TEST }}
11+
LOCAL_MASTER_ACCOUNT: ${{ secrets.LOCAL_MASTER_ACCOUNT }}
12+
LOG_LEVEL: debug2
13+
14+
jobs:
15+
naga-e2e-tests:
16+
runs-on: ubuntu-latest
17+
environment: Health Check
18+
steps:
19+
# ==================== Base Env Setup ====================
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Install rust
24+
uses: actions-rs/toolchain@v1
25+
with:
26+
toolchain: stable
27+
override: true
28+
components: rust-std
29+
30+
- name: Install wasm-pack
31+
uses: jetli/[email protected]
32+
with:
33+
version: 'latest'
34+
35+
- name: Setup Node
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: '22.18.0'
39+
registry-url: 'https://registry.npmjs.org'
40+
41+
- name: Setup PNPM
42+
uses: pnpm/action-setup@v4
43+
with:
44+
version: 9.15.0
45+
46+
- name: Install Dependencies
47+
run: pnpm install --frozen-lockfile
48+
49+
# ==================== Run Build ====================
50+
- name: Build
51+
run: pnpm build
52+
53+
# ==================== Run Tests ====================
54+
- name: Run health check for naga-test
55+
run: NETWORK=naga-test pnpm run test:e2e:ci all
56+
timeout-minutes: 10

0 commit comments

Comments
 (0)