vega-frontend-monorepo/.github/workflows/cypress.yml
2022-03-10 12:05:41 +00:00

34 lines
830 B
YAML

name: Cypress tests
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
cypress-run:
name: Run end-to-end tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
- name: Use Node.js 16
id: Node
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install root dependencies and run tests
run: yarn install
- name: Build app
run: npx nx affected:e2e --target=build --parallel=3
- name: Run E2E tests
run: npx nx affected:e2e --target=test --parallel=2 --record --key ${{ secrets.CYPRESS_RECORD_KEY }}