Skip to content

Commit 41b6983

Browse files
committed
SWI-6937 Add Smoke Tests for UP Account
1 parent c8a3650 commit 41b6983

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

.github/workflows/test-smoke.yml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,17 @@ on:
66
pull_request:
77
paths:
88
- "tests/smoke/**"
9+
- ".github/workflows/test-smoke.yml"
910

1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.head_ref }}
1213
cancel-in-progress: true
1314

1415
env:
15-
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
1616
BW_USERNAME: ${{ secrets.BW_USERNAME }}
1717
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
1818
BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }}
1919
BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }}
20-
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
21-
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
22-
BW_NUMBER: ${{ secrets.BW_NUMBER }}
2320
USER_NUMBER: ${{ secrets.USER_NUMBER }}
2421
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
2522
MANTECA_ACTIVE_NUMBER: ${{ secrets.MANTECA_ACTIVE_NUMBER }}
@@ -31,6 +28,11 @@ jobs:
3128
test_main:
3229
name: Smoke Test
3330
runs-on: ubuntu-latest
31+
env:
32+
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
33+
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }}
34+
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }}
35+
BW_NUMBER: ${{ secrets.BW_NUMBER }}
3436
steps:
3537
- name: Checkout
3638
uses: actions/checkout@v4
@@ -47,9 +49,33 @@ jobs:
4749
env:
4850
OPERATING_SYSTEM: "ubuntu"
4951

52+
test_main_up:
53+
name: Smoke Test UP Account
54+
runs-on: ubuntu-latest
55+
env:
56+
BW_ACCOUNT_ID: ${{ secrets.BW_UP_ACCOUNT_ID }}
57+
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_UP_VOICE_APPLICATION_ID }}
58+
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_UP_MESSAGING_APPLICATION_ID }}
59+
BW_NUMBER: ${{ secrets.BW_UP_NUMBER }}
60+
steps:
61+
- name: Checkout
62+
uses: actions/checkout@v4
63+
64+
- name: Setup Node
65+
uses: actions/setup-node@v4
66+
with:
67+
node-version: 22
68+
69+
- name: Install Packages and Test
70+
run: |
71+
yarn
72+
yarn test-smoke-up
73+
env:
74+
OPERATING_SYSTEM: "ubuntu"
75+
5076
notify_for_failures:
5177
name: Notify for Failures
52-
needs: [test_main]
78+
needs: [test_main, test_main_up]
5379
if: failure()
5480
runs-on: ubuntu-latest
5581
steps:

0 commit comments

Comments
 (0)