add linting to CI

This commit is contained in:
Hans Pagel 2020-09-24 17:00:46 +02:00
parent 5e1f01580f
commit fd71fbdc5f

View File

@ -6,9 +6,46 @@ name: build
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
strategy:
matrix:
node-version: [14]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v2.3.3
- name: Install dependencies
id: install-dependencies
run: yarn install
- name: Lint code
id: lint
run: yarn lint
- name: Send Slack notifications
uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#tiptap-next'
if: failure()
test:
runs-on: ubuntu-latest
needs: lint
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}