Skip to content

Commit 50e3db9

Browse files
committed
fix(e2e): add verification for required secrets and update health check command
1 parent 3510e92 commit 50e3db9

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/e2e-naga.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ jobs:
8787
cp -a build-output/packages/wasm/src/pkg/. packages/wasm/src/pkg/
8888
fi
8989
rm -rf build-output
90+
- name: Verify required secrets
91+
run: |
92+
if [ -z "${LIVE_MASTER_ACCOUNT}" ]; then
93+
echo "LIVE_MASTER_ACCOUNT is not set for network ${NETWORK:-unknown}" >&2
94+
exit 1
95+
fi
96+
if [ -z "${LOCAL_MASTER_ACCOUNT}" ]; then
97+
echo "LOCAL_MASTER_ACCOUNT is not set" >&2
98+
exit 1
99+
fi
90100
- name: Run health check (${{ matrix.network }})
91-
run: NETWORK=${{ matrix.network }} pnpm run test:e2e:ci -- packages/e2e/src/e2e.spec.ts
101+
run: NETWORK=${{ matrix.network }} pnpm run test:e2e:ci:file -- packages/e2e/src/e2e.spec.ts
92102
timeout-minutes: 10

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"format:check": "npx nx format:check --all",
1414
"test:e2e": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 -t",
1515
"test:custom": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} dotenvx run --env-file=.env -- jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000",
16-
"test:e2e:ci": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} npx jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 --runTestsByPath",
16+
"test:e2e:ci": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} npx jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 -t",
17+
"test:e2e:ci:file": "npx jest --clearCache --config ./jest.e2e.config.ts && LOG_LEVEL=${LOG_LEVEL:-silent} npx jest --runInBand --detectOpenHandles --forceExit --config ./jest.e2e.config.ts --testTimeout=50000000 --runTestsByPath",
1718
"test:ci:locally": "act pull_request --pull=false -W .github/workflows/e2e-naga.yml --secret-file ./.env --container-architecture linux/amd64 -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-latest"
1819
},
1920
"private": true,

0 commit comments

Comments
 (0)