diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-19 01:49:51 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-19 01:49:52 +0900 |
commit | 2f6c8ed26eec4ad2d2fdaa0823cc63ba32f4c7a2 (patch) | |
tree | 431e2c9874a20051da335624ee68313f87130db8 /.github/workflows/macos.yml | |
parent | e4c43207f9c7c56ecc76bb941c08a686a242b1de (diff) |
Implement Slack notification for Actions
Diffstat (limited to '.github/workflows/macos.yml')
-rw-r--r-- | .github/workflows/macos.yml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index e357e3ad2e..d974a9f7ad 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -42,19 +42,20 @@ jobs: - name: configure run: ./configure -C --disable-install-doc --with-openssl-dir=$(brew --prefix openssl@1.1) --with-readline-dir=$(brew --prefix readline) - run: make $JOBS - - name: make check + - name: Tests run: make -s ${{ matrix.test_task }} env: TESTOPTS: "$JOBS -q --tty=no" MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies - if: matrix.test_task == 'check' - # test-bundler/test-bundled-gems are separated because it randomly fails and ends up cancelling `make check`. - # TODO: Remove `continue-on-error` once they become stable and also we have a notification for their failure. - - name: make test-bundler/test-bundled-gems - run: make -s ${{ matrix.test_task }} - env: - TESTOPTS: "$JOBS -q --tty=no" - continue-on-error: true - if: matrix.test_task != 'check' - name: Leaked Globals run: make -s leaked-globals + - uses: ./.github/actions/notify-slack + with: + status: ${{ job.status }} + matrix_name: ${{ matrix.test_task }} + committer_name: ${{ github.event.head_commit.committer.name }} + commit_message: ${{ github.event.head_commit.message }} + commit_timestamp: ${{ github.event.head_commit.timestamp }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + if: failure() && github.event_name == 'push' |