build(deps): update package-lock.json and package.json with latest pa… #368
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node CI | |
on: | |
push: | |
paths-ignore: | |
- "docs/**" | |
- README.md | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Get cached dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm install | |
- name: Lint code | |
run: npm run lint:check | |
- name: Compile | |
run: npm run compile | |
# Use unit rather than `test`, to skip the pretest step, otherwise that | |
# would duplicate steps above. | |
- name: Unit tests (without coverage report) | |
run: npm run test:unit | |
env: | |
CI: true |