Merge pull request #3531 from Johannes-Andersen/jsonValidate
Add linting for JSON and workflow to test on pushmain
commit
be9209d1df
@ -0,0 +1,25 @@
|
||||
name: Validate
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
name: Validate
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.3
|
||||
- uses: actions/setup-node@v2.1.2
|
||||
with:
|
||||
node-version: '14'
|
||||
- name: Restore npm cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
- name: Validate
|
||||
run: npm run validate
|
Before Width: | Height: | Size: 755 B |
Before Width: | Height: | Size: 2.4 KiB |
Loading…
Reference in new issue