Add linting action
This commit is contained in:
parent
0d2e3109e8
commit
5ed46a1ffe
|
@ -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
|
|
@ -23,7 +23,7 @@ jobs:
|
||||||
node-version: '18'
|
node-version: '18'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm ci && npm run build:github
|
run: npm ci && npm run lint && npm run build:github
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
|
Loading…
Reference in New Issue