Skip to content

Merge pull request #1334 from appknox/cypress-integration #26

Merge pull request #1334 from appknox/cypress-integration

Merge pull request #1334 from appknox/cypress-integration #26

Workflow file for this run

name: E2E Test
on:
pull_request:
types: [opened, reopened, synchronize, edited, ready_for_review]
push:
branches:
- develop
- main
- master
jobs:
e2e-tests:
runs-on: [ubuntu-latest]
concurrency:
group: ${{ github.workflow }}-ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
deployments: write
name: Run E2E Tests
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
- run: npm ci
- name: Cypress run
uses: cypress-io/github-action@v5
env:
CYPRESS_TEST_USERNAME: ${{ secrets.CYPRESS_TEST_USERNAME}}
CYPRESS_TEST_PASSWORD: ${{ secrets.CYPRESS_TEST_PASSWORD }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_TEST_RECORD_ID}}
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_TEST_PROJECT_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
start: npm run startprod
install: false
config: pageLoadTimeout=100000
wait-on: 'http://localhost:4200'
record: true