mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-22 17:30:00 +00:00
1bb7a22f6e
Co-authored-by: Tatiana Mac <tatiana.t.mac@gmail.com>
22 lines
440 B
YAML
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
|