File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 7676 NPM_TOKEN_APP_CHECK_COMPAT : ${{ secrets.NPM_TOKEN_APP_CHECK_COMPAT }}
7777 NPM_TOKEN_API_DOCUMENTER : ${{ secrets.NPM_TOKEN_API_DOCUMENTER }}
7878 CI : true
79+ - name : Launch E2E tests workflow
80+ # Trigger e2e-test.yml
81+ run : |
82+ VERSION_SCRIPT="const pkg = require('./packages/firebase/package.json'); console.log(pkg.version);"
83+ VERSION_OR_TAG=`node -e "${VERSION_SCRIPT}"`
84+ OSS_BOT_GITHUB_TOKEN=${{ secrets.OSS_BOT_GITHUB_TOKEN }}
85+ curl -X POST \
86+ -H "Content-Type:application/json" \
87+ -H "Accept:application/vnd.github.v3+json" \
88+ -H "Authorization:Bearer $OSS_BOT_GITHUB_TOKEN" \
89+ -d "{\"event_type\":\"canary-tests\", \"client_payload\":{\"versionOrTag\":\"$VERSION_OR_TAG\"}}" \
90+ https://api.github.com/repos/firebase/firebase-js-sdk/dispatches
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: E2E Smoke Tests
33# Allows REST trigger. Currently triggered by release-cli script during a staging run.
44on :
55 repository_dispatch :
6- types : [staging-tests]
6+ types : [staging-tests,canary-tests ]
77
88jobs :
99 test :
6262 - name : Tests succeeded
6363 if : success()
6464 run : node scripts/ci/notify-test-result.js success
65+ # we don't want THIS step erroring to trigger the failure notification
66+ continue-on-error : true
6567 env :
6668 WEBHOOK_URL : ${{ secrets.JSCORE_CHAT_WEBHOOK_URL }}
6769 RELEASE_TRACKER_URL : ${{ secrets.RELEASE_TRACKER_URL }}
You can’t perform that action at this time.
0 commit comments