Skip to content

[Snyk] Security upgrade express from 1.0.8 to 4.19.2 #75

[Snyk] Security upgrade express from 1.0.8 to 4.19.2

[Snyk] Security upgrade express from 1.0.8 to 4.19.2 #75

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- "!dependabot/**"
pull_request:
branches:
- "**"
env:
FORCE_COLOR: 2
NODE_COV: 14
jobs:
run:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [10, 12, 14, 16]
os: [ubuntu-latest, windows-latest]
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
${{ runner.os }}-node-v${{ matrix.node }}-
- name: Install npm dependencies
run: npm ci
- name: Run tests
run: npm run test
if: "!(startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV)"
- name: Run tests with coverage
run: npm run nyc -- npm run test
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV
- name: Run Coveralls
uses: coverallsapp/github-action@v1.1.2
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"