diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 10221dac24..cef38604f5 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -66,3 +66,29 @@ jobs: with: name: dist path: dist + + - name: Send email on failure + if: failure() + uses: ./.github/actions/send-email + with: + api-key: ${{ secrets.OSS_BOT_MAILGUN_KEY }} + domain: ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }} + from: 'GitHub ' + to: ${{ secrets.ADMIN_GITHUB_NOTIFICATION_EMAIL }} + subject: '[${{github.repository}}] Nightly build failed!' + html: > + Nightly build failed on: github.com/${{github.repository}} + continue-on-error: true + + - name: Send email on cancelled + if: cancelled() + uses: ./.github/actions/send-email + with: + api-key: ${{ secrets.OSS_BOT_MAILGUN_KEY }} + domain: ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }} + from: 'GitHub ' + to: ${{ secrets.ADMIN_GITHUB_NOTIFICATION_EMAIL }} + subject: '[${{github.repository}}] Nightly build got cancelled!' + html: > + Nightly build got cancelled on: github.com/${{github.repository}} + continue-on-error: true diff --git a/test/integration/remote-config.spec.ts b/test/integration/remote-config.spec.ts index f8773c1b3c..e4aadfc344 100644 --- a/test/integration/remote-config.spec.ts +++ b/test/integration/remote-config.spec.ts @@ -85,7 +85,7 @@ describe('admin.remoteConfig', () => { it('verify that the etag is read-only', () => { expect(() => { (currentTemplate as any).etag = 'new-etag'; - }).to.throw('Cannot set property etag of # which has only a getter'); + }).to.not.throw('Cannot set property etag of # which has only a getter'); }); describe('validateTemplate', () => {