Tatiana Mac ca07ab31f6
⚙️ Add linting and CI infrastructure (#85)
* Add husky and lint-staged, run lint and test in precommit hook

* Add CI for test and lint

* Apply eslint fixes in precommit hook
2020-03-05 10:17:19 -08:00

22 lines
426 B
YAML

name: Node CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
- name: npm install, lint, and test
run: |
npm install
npm run lint
npm test
env:
CI: true