Skip to content

[Snyk] Security upgrade tempy from 1.0.1 to 3.0.0 #174

[Snyk] Security upgrade tempy from 1.0.1 to 3.0.0

[Snyk] Security upgrade tempy from 1.0.1 to 3.0.0 #174

Workflow file for this run

name: Test
on:
push:
branches: [latest]
pull_request:
branches: [latest]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [10.x, 12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
# Canvas requires some additional packages not available by default in the provided environment.
# https://github.com/Automattic/node-canvas/blob/master/.github/workflows/ci.yaml
- name: Install required system packages
run: |
sudo apt update
sudo apt install -y libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev librsvg2-dev
- name: Cache node modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Report test coverage to Coveralls
uses: coverallsapp/github-action@master
with:
flag-name: test-node@${{ matrix.node }}
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
path-to-lcov: ./coverage/lcov.info
onEnd:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
path-to-lcov: ./coverage/lcov.info