Add linting action

This commit is contained in:
Niek van der Maas 2023-03-20 13:50:35 +01:00
parent 0d2e3109e8
commit 5ed46a1ffe
2 changed files with 22 additions and 1 deletions

21
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Linting
# Run on PRs only
on:
pull_request:
types: [opened, reopened]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Lint
run: npm ci && npm run lint

View File

@ -23,7 +23,7 @@ jobs:
node-version: '18'
- name: Build
run: npm ci && npm run build:github
run: npm ci && npm run lint && npm run build:github
- name: Deploy
uses: peaceiris/actions-gh-pages@v3