Skip to content

[Snyk] Security upgrade cypress from 4.1.0 to 5.0.0 #139

[Snyk] Security upgrade cypress from 4.1.0 to 5.0.0

[Snyk] Security upgrade cypress from 4.1.0 to 5.0.0 #139

Workflow file for this run

name: Pull-Request CI
on:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('package.json') }}
- name: Use Node.js 16
uses: actions/setup-node@v1
with:
node-version: 16.X
- run: npm install
- name: Build Libs
shell: bash
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
- name: Run Tests
shell: bash
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
- run: npm run build
- name: Deploy Preview
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/apps/demo
destination_dir: ./pr_${{ github.event.number }}
keep_files: false