[Snyk] Security upgrade jest from 24.1.0 to 27.0.2 #109
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: Pull-Request CI | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm install | |
run: npm install | |
- name: npm build | |
run: | | |
if [[ $GITHUB_BASE_REF ]] | |
then | |
export NX_BASE=remotes/origin/$GITHUB_BASE_REF | |
else | |
export NX_BASE=$(git rev-parse HEAD~1) | |
fi | |
echo "Base => $NX_BASE" | |
npm run affected:build -- --base=$NX_BASE | |
env: | |
CI: true | |
- name: npm test | |
run: | | |
if [[ $GITHUB_BASE_REF ]] | |
then | |
export NX_BASE=remotes/origin/$GITHUB_BASE_REF | |
else | |
export NX_BASE=$(git rev-parse HEAD~1) | |
fi | |
echo "Base => $NX_BASE" | |
npm run affected:test -- --base=$NX_BASE | |
env: | |
CI: true | |
- name: Test with Coverage | |
run: npm run client:coverage | |
- uses: codecov/[email protected] | |
with: | |
token: ${{secrets.CODE_COV_TOKEN}} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node_version: 13.x | |
- name: Run markdownlint | |
run: npm run markdown:lint | |
- name: Run cspell | |
run: npm run cspell:lint |