Tierney Cyren 1bb7a22f6e
⚒️ fix: also run Actions CI on Pull Request events (#212)
Co-authored-by: Tatiana Mac <tatiana.t.mac@gmail.com>
2020-06-12 12:39:33 -07:00

22 lines
440 B
YAML

name: Node CI
on: [push, pull_request]
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