diff --git a/.github/workflows/canary-deploy.yml b/.github/workflows/canary-deploy.yml index 39e7f604459..f07395e5eb8 100644 --- a/.github/workflows/canary-deploy.yml +++ b/.github/workflows/canary-deploy.yml @@ -76,3 +76,15 @@ jobs: NPM_TOKEN_APP_CHECK_COMPAT: ${{ secrets.NPM_TOKEN_APP_CHECK_COMPAT }} NPM_TOKEN_API_DOCUMENTER: ${{ secrets.NPM_TOKEN_API_DOCUMENTER }} CI: true + - name: Launch E2E tests workflow + # Trigger e2e-test.yml + run: | + VERSION_SCRIPT="const pkg = require('./packages/firebase/package.json'); console.log(pkg.version);" + VERSION_OR_TAG=`node -e "${VERSION_SCRIPT}"` + OSS_BOT_GITHUB_TOKEN=${{ secrets.OSS_BOT_GITHUB_TOKEN }} + curl -X POST \ + -H "Content-Type:application/json" \ + -H "Accept:application/vnd.github.v3+json" \ + -H "Authorization:Bearer $OSS_BOT_GITHUB_TOKEN" \ + -d "{\"event_type\":\"canary-tests\", \"client_payload\":{\"versionOrTag\":\"$VERSION_OR_TAG\"}}" \ + https://api.github.com/repos/firebase/firebase-js-sdk/dispatches \ No newline at end of file diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index d24c2b10818..859c2ef57c8 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -3,7 +3,7 @@ name: E2E Smoke Tests # Allows REST trigger. Currently triggered by release-cli script during a staging run. on: repository_dispatch: - types: [staging-tests] + types: [staging-tests,canary-tests] jobs: test: @@ -62,6 +62,8 @@ jobs: - name: Tests succeeded if: success() run: node scripts/ci/notify-test-result.js success + # we don't want THIS step erroring to trigger the failure notification + continue-on-error: true env: WEBHOOK_URL: ${{ secrets.JSCORE_CHAT_WEBHOOK_URL }} RELEASE_TRACKER_URL: ${{ secrets.RELEASE_TRACKER_URL }}