Skip to content

Commit

Permalink
add lint run
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Sep 22, 2022
1 parent a99cd65 commit 9b8e20c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🍔🍟🥤
uses: actions/[email protected]
with:
persist-credentials: false

- name: Use Node.js 😂
uses: actions/setup-node@v3
with:
node-version: 16

- name: Test 🧪
run: |
npm ci
npm run check-ci
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"module": "src/ByteBeatNode.js",
"scripts": {
"build": "rollup -c",
"check-ci": "npm run eslint",
"eslint": "eslint src/**/*.js editor/**/*.js",
"pre-push": "npm run eslint",
"update-songs": "node build/update-songs.js"
},
"files": [
Expand Down

0 comments on commit 9b8e20c

Please sign in to comment.