[Snyk] Security upgrade axios from 0.27.2 to 1.6.3 #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Unit Tests with Jest | |
on: | |
pull_request: | |
types: [opened, edited, synchronize, reopened] | |
jobs: | |
install-unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get files | |
uses: actions/checkout@v2 | |
- name: Use Node.js 16.c | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.x | |
- name: Install packages | |
run: | | |
if [ -e yarn.lock ]; then | |
yarn install --frozen-lockfile | |
elif [ -e package-lock.json ]; then | |
npm ci | |
else | |
npm i --force | |
fi | |
- name: Run tests | |
run: npm run test --coverage |