Skip to content

Commit d0cbc2c

Browse files
authored
ci: release lmp bundle (#2140)
1 parent 28d9af8 commit d0cbc2c

File tree

1 file changed

+56
-2
lines changed

1 file changed

+56
-2
lines changed

.github/workflows/release-lace-bundle.yml

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release Lace Bundle
1+
name: Release LMP Bundle
22

33
on:
44
workflow_dispatch:
@@ -140,7 +140,7 @@ jobs:
140140
DAPP_RADAR_API_KEY: ${{ secrets.DAPP_RADAR_API_KEY }}
141141
NOTIFICATION_CENTER_MODE: 'production'
142142
PUBNUB_SUBSCRIBE_KEY: ${{ secrets.PUBNUB_SUBSCRIBE_KEY }}
143-
PUBNUB_TOKEN_ENDPOINT: ${{ vars.PUBNUB_TOKEN_ENDPOINT }}
143+
PUBNUB_TOKEN_ENDPOINT: ${{ vars.PUBNUB_TOKEN_ENDPOINT }}
144144
run: |
145145
yarn cleanup:dist
146146
WEBPACK_PUBLIC_PATH=/sw/ yarn build:sw
@@ -374,3 +374,57 @@ jobs:
374374
path: ./dist
375375
retention-days: 90
376376
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

Comments
 (0)