Skip to content

trigger the danger action on PR creation #1469

trigger the danger action on PR creation

trigger the danger action on PR creation #1469

Workflow file for this run

name: Tests
on: [ push,pull_request ]
jobs:
build:
name: Test Suite
runs-on: ubuntu-20.04
steps:
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Checkout code
uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci
- name: Lint code
run: npm run lint
- name: Run test suite
run: npm test