Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

adding dependency-review #5

adding dependency-review

adding dependency-review #5

Workflow file for this run

name: test
on: [ push, pull_request ]
defaults:
run:
working-directory: action
jobs:
deduplicate:
timeout-minutes: 5
runs-on: ubuntu-latest
# run on external PRs, but on internal PRs as they'll be run by the push to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- run: echo ::warning ::skipped duplicate run
working-directory: .
audit:
timeout-minutes: 5
needs: deduplicate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
- run: npm audit --audit-level=critical
test:
timeout-minutes: 5
needs: audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: 14
- uses: actions/[email protected]
with:
path: ~/.npm
key: ${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- run: npm run test:ci