[Snyk] Security upgrade react-scripts from 4.0.3 to 5.0.0 #2906
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/[email protected] | |
with: | |
node-version: 14.16.1 | |
- 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: unit tests | |
run: yarn test-coverage | |
env: | |
CI: true | |
- name: upload test coverage to codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: build | |
run: yarn build |