@@ -16,7 +16,6 @@ name: E2E Smoke Tests
16
16
17
17
# Allows REST trigger. Currently triggered by release-cli script during a staging run.
18
18
on :
19
- pull_request :
20
19
repository_dispatch :
21
20
types : [staging-tests,canary-tests]
22
21
31
30
32
31
defaults :
33
32
run :
34
- # Run any command steps in the /e2e subdir
33
+ # Run any command steps in the /e2e/smoke-tests subdir
35
34
working-directory : ' ./e2e/smoke-tests'
36
35
37
36
steps :
@@ -53,15 +52,15 @@ jobs:
53
52
echo "export const config = $PROJECT_CONFIG; export const testAccount = $TEST_ACCOUNT" > firebase-config.js
54
53
- name : Poll npm until version to test is available for install
55
54
run : |
56
- echo "Polling npm for firebase@11.8.1 "
55
+ echo "Polling npm for firebase@${{ github.event.client_payload.versionOrTag }} "
57
56
node ./scripts/release/poll-npm-publish.js
58
57
# run in root
59
58
working-directory : ' .'
60
59
env :
61
- VERSION : 11.8.1
60
+ VERSION : ${{ github.event.client_payload.versionOrTag }}
62
61
- name : Yarn install
63
62
run : |
64
- echo "Installing firebase@11.8.1 "
63
+ echo "Installing firebase@${{ github.event.client_payload.versionOrTag }} "
65
64
66
65
yarn
67
66
- name : Deploy "callTest" cloud function
@@ -85,23 +84,23 @@ jobs:
85
84
env :
86
85
APP_CHECK_DEBUG_TOKEN : ${{ secrets.APP_CHECK_DEBUG_TOKEN }}
87
86
run : xvfb-run yarn test:compat
88
- # - name: Tests succeeded
89
- # if: success()
90
- # run: node scripts/ci/notify-test-result.js success
91
- # # we don't want THIS step erroring to trigger the failure notification
92
- # continue-on-error: true
93
- # env:
94
- # WEBHOOK_URL: ${{ secrets.JSCORE_CHAT_WEBHOOK_URL }}
95
- # RELEASE_TRACKER_URL: ${{ secrets.RELEASE_TRACKER_URL }}
96
- # VERSION_OR_TAG: 11.8.1
97
- # # run in root
98
- # working-directory: '.'
99
- # - name: Tests failed
100
- # if: failure()
101
- # run: node scripts/ci/notify-test-result.js fail
102
- # env:
103
- # WEBHOOK_URL: ${{ secrets.JSCORE_CHAT_WEBHOOK_URL }}
104
- # RELEASE_TRACKER_URL: ${{ secrets.RELEASE_TRACKER_URL }}
105
- # VERSION_OR_TAG: ${{ github.event.client_payload.versionOrTag }}
106
- # # run in root
107
- # working-directory: '.'
87
+ - name : Tests succeeded
88
+ if : success()
89
+ run : node scripts/ci/notify-test-result.js success
90
+ # we don't want THIS step erroring to trigger the failure notification
91
+ continue-on-error : true
92
+ env :
93
+ WEBHOOK_URL : ${{ secrets.JSCORE_CHAT_WEBHOOK_URL }}
94
+ RELEASE_TRACKER_URL : ${{ secrets.RELEASE_TRACKER_URL }}
95
+ VERSION_OR_TAG : ${{ github.event.client_payload.versionOrTag }}
96
+ # run in root
97
+ working-directory : ' .'
98
+ - name : Tests failed
99
+ if : failure()
100
+ run : node scripts/ci/notify-test-result.js fail
101
+ env :
102
+ WEBHOOK_URL : ${{ secrets.JSCORE_CHAT_WEBHOOK_URL }}
103
+ RELEASE_TRACKER_URL : ${{ secrets.RELEASE_TRACKER_URL }}
104
+ VERSION_OR_TAG : ${{ github.event.client_payload.versionOrTag }}
105
+ # run in root
106
+ working-directory : ' .'
0 commit comments