diff --git a/.github/workflows/ci_nightly.yml b/.github/workflows/ci_nightly.yml index 64bde2d387c..61b6854f4df 100644 --- a/.github/workflows/ci_nightly.yml +++ b/.github/workflows/ci_nightly.yml @@ -1,4 +1,4 @@ -name: CI +name: CI Nightly concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -36,6 +36,20 @@ jobs: - uses: taiki-e/install-action@9b5b983efc779f85e5e5d11539f005e85ccb27ff with: tool: just,cargo-nextest - # Run the tests: - - run: just nextest-slow ${{ matrix.type }} + - uses: mathiasvr/command-output@34408ea3d0528273faff3d9e201761ae96106cd0 + with: + run: just nextest-slow ${{ matrix.type }} + id: run_nextest + + - name: Notify in Zulip about failures + uses: zulip/github-actions-zulip/send-message@08b6fbd07f5834e5b930a85bc7740e9fd44ab2e7 + if: always() && steps.run_nextest.conclusion == 'failure' + with: + api-key: ${{ secrets.ZULIP_API_KEY }} + email: "gha-bot@near.zulipchat.com" + organization-url: "https://near.zulipchat.com" + to: "nearone/private" + type: "stream" + topic: "GHA failures" + content: "Cargo Nextest ${{matrix.name}} [failed](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}): \n > ${{ steps.run_nextest.outputs.stderr }} "