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