add slack notifications to CI
This commit is contained in:
20
.github/workflows/main.yml
vendored
20
.github/workflows/main.yml
vendored
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user