diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7e2f5c7c..b945a112 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,6 +6,9 @@ jobs: test: runs-on: ubuntu-latest + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + strategy: matrix: node-version: [14] @@ -20,6 +23,7 @@ jobs: - uses: actions/checkout@v2.3.2 - name: Run tests with Cypress + id: cypress uses: cypress-io/github-action@v2 with: cache-key: node-v${{ matrix.node }}-on-${{ runner.os }}-hash-${{ hashFiles('yarn.lock') }} @@ -42,6 +46,13 @@ jobs: name: cypress-videos path: tests/cypress/videos + - uses: act10ns/slack@v1 + with: + status: ${{ job.status }} + steps: ${{ toJson(steps) }} + channel: '#tiptap-next' + if: failure() + build: runs-on: ubuntu-latest @@ -59,7 +70,16 @@ jobs: - uses: actions/checkout@v2.3.2 - name: Install dependencies + id: install-dependencies run: yarn install - name: Build packages dependencies + id: build-packages run: yarn build:packages + + - uses: act10ns/slack@v1 + with: + status: ${{ job.status }} + steps: ${{ toJson(steps) }} + channel: '#tiptap-next' + if: failure()