Skip to content

[Fix] After npm audit fix #52

[Fix] After npm audit fix

[Fix] After npm audit fix #52

Workflow file for this run

name: ci
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [lts/*]
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@master
- name: Setup node env πŸ—
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Get npm cache directory path πŸ› 
id: npm-cache-dir-path
run: echo "::set-output name=dir::$(npm config get cache)"
- name: Cache node_modules πŸ“¦
uses: actions/[email protected]
id: npm-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.npm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/npm.lock') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: npm install
- name: Run linter πŸ‘€
run: npm run lint
- name: Run tests πŸ§ͺ
run: npm run test