Feature/jss 29 feature add naga uptime bot #57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: E2E - Naga (matrix) | |
| on: | |
| push: | |
| branches: [naga, canary-naga] | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Build once | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| override: true | |
| components: rust-std | |
| - uses: jetli/[email protected] | |
| with: | |
| version: latest | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.18.0 | |
| registry-url: https://registry.npmjs.org | |
| - name: Enable corepack + pin pnpm | |
| run: | | |
| corepack enable | |
| corepack prepare [email protected] --activate | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm build | |
| - name: Upload build output | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-output | |
| path: | | |
| dist | |
| packages/wasm/src/pkg | |
| if-no-files-found: error | |
| e2e: | |
| name: E2E (${{ matrix.network }}) | |
| needs: build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - environment: naga-dev | |
| network: naga-dev | |
| privateKey: LIVE_MASTER_ACCOUNT_NAGA_DEV | |
| # - environment: naga-staging | |
| # network: naga-staging | |
| # privateKey: LIVE_MASTER_ACCOUNT_NAGA_STAGING | |
| - environment: naga-test | |
| network: naga-test | |
| privateKey: LIVE_MASTER_ACCOUNT_NAGA_TEST | |
| env: | |
| LOG_LEVEL: debug2 | |
| LIVE_MASTER_ACCOUNT: ${{ secrets[matrix.privateKey] }} | |
| LOCAL_MASTER_ACCOUNT: ${{ secrets[matrix.privateKey] }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.18.0 | |
| registry-url: https://registry.npmjs.org | |
| - name: Enable corepack + pin pnpm | |
| run: | | |
| corepack enable | |
| corepack prepare [email protected] --activate | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Download build output | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: build-output | |
| path: build-output | |
| - name: Restore build artifacts | |
| run: | | |
| mkdir -p dist | |
| mkdir -p packages/wasm/src/pkg | |
| if [ -d build-output/dist ]; then | |
| cp -a build-output/dist/. dist/ | |
| fi | |
| if [ -d build-output/packages/wasm/src/pkg ]; then | |
| cp -a build-output/packages/wasm/src/pkg/. packages/wasm/src/pkg/ | |
| fi | |
| rm -rf build-output | |
| - name: Verify required secrets | |
| run: | | |
| if [ -z "${LIVE_MASTER_ACCOUNT}" ]; then | |
| echo "LIVE_MASTER_ACCOUNT is not set for network ${{ matrix.network }}" >&2 | |
| exit 1 | |
| fi | |
| if [ -z "${LOCAL_MASTER_ACCOUNT}" ]; then | |
| echo "LOCAL_MASTER_ACCOUNT is not set for network ${{ matrix.network }}" >&2 | |
| exit 1 | |
| fi | |
| - name: Run health check (${{ matrix.network }}) | |
| run: NETWORK=${{ matrix.network }} pnpm run test:e2e:ci -- packages/e2e/src/e2e.spec.ts --testNamePattern "^all " | |
| timeout-minutes: 10 |