[Snyk] Security upgrade react-scripts from 4.0.3 to 5.0.0 #6111
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: Testing (Pull Request) | |
on: | |
pull_request: | |
types: [edited, labeled, opened, synchronize, reopened] | |
jobs: | |
test: | |
name: Unit tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: set up node.js | |
uses: actions/setup-node@v2.5.1 | |
with: | |
node-version: 14.18 | |
- name: check out code | |
uses: actions/checkout@v2 | |
- name: rename config file | |
run: mv src/common/utils/clientConfig.sample.ts src/common/utils/clientConfig.ts | |
- name: install | |
run: yarn install | |
- name: run eslint | |
run: yarn lint | |
- name: run typescript build | |
run: yarn tsc | |
- name: run unit tests | |
run: yarn test-coverage | |
env: | |
CI: true | |
- name: upload test coverage to codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |