|
1 | | -name: Release Lace Bundle |
| 1 | +name: Release LMP Bundle |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | workflow_dispatch: |
@@ -140,7 +140,7 @@ jobs: |
140 | 140 | DAPP_RADAR_API_KEY: ${{ secrets.DAPP_RADAR_API_KEY }} |
141 | 141 | NOTIFICATION_CENTER_MODE: 'production' |
142 | 142 | PUBNUB_SUBSCRIBE_KEY: ${{ secrets.PUBNUB_SUBSCRIBE_KEY }} |
143 | | - PUBNUB_TOKEN_ENDPOINT: ${{ vars.PUBNUB_TOKEN_ENDPOINT }} |
| 143 | + PUBNUB_TOKEN_ENDPOINT: ${{ vars.PUBNUB_TOKEN_ENDPOINT }} |
144 | 144 | run: | |
145 | 145 | yarn cleanup:dist |
146 | 146 | WEBPACK_PUBLIC_PATH=/sw/ yarn build:sw |
@@ -374,3 +374,57 @@ jobs: |
374 | 374 | path: ./dist |
375 | 375 | retention-days: 90 |
376 | 376 | if-no-files-found: error |
| 377 | + |
| 378 | + smokeTests: |
| 379 | + name: E2E Smoke Tests |
| 380 | + runs-on: ubuntu-22.04 |
| 381 | + needs: bundle |
| 382 | + strategy: |
| 383 | + fail-fast: false |
| 384 | + matrix: |
| 385 | + batch: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] |
| 386 | + |
| 387 | + steps: |
| 388 | + - name: Checkout repository |
| 389 | + uses: actions/checkout@v4 |
| 390 | + with: |
| 391 | + submodules: recursive |
| 392 | + token: ${{ secrets.GH_TOKEN }} |
| 393 | + |
| 394 | + - name: Setup Node.js and install dependencies |
| 395 | + uses: ./.github/actions/install |
| 396 | + with: |
| 397 | + WALLET_PASSWORD: ${{ secrets.WALLET_PASSWORD_TESTNET }} |
| 398 | + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |
| 399 | + |
| 400 | + - name: Download Lace Bundle artifact |
| 401 | + uses: actions/download-artifact@v5 |
| 402 | + with: |
| 403 | + name: lace-bundle-chrome |
| 404 | + path: ./dist |
| 405 | + |
| 406 | + - name: Execute E2E tests |
| 407 | + uses: ./.github/actions/test/e2e |
| 408 | + with: |
| 409 | + BATCH: ${{ matrix.batch }} |
| 410 | + SMOKE_ONLY: true |
| 411 | + TEST_DAPP_URL: ${{ secrets.TEST_DAPP_URL }} |
| 412 | + WALLET_PASSWORD: ${{ secrets.WALLET_PASSWORD_TESTNET }} |
| 413 | + SERVICE_WORKER_LOGS: true |
| 414 | + LMP_BUNDLE: true |
| 415 | + |
| 416 | + verifyTests: |
| 417 | + name: Verify Test Results |
| 418 | + runs-on: ubuntu-22.04 |
| 419 | + needs: smokeTests |
| 420 | + if: always() |
| 421 | + |
| 422 | + steps: |
| 423 | + - name: Check smoke tests result |
| 424 | + run: | |
| 425 | + if [[ ${{ needs.smokeTests.result }} == "success" ]]; then |
| 426 | + exit 0 |
| 427 | + else |
| 428 | + exit 1 |
| 429 | + fi |
| 430 | +
|
0 commit comments