Skip to content

End to End Tests - Prod #99

End to End Tests - Prod

End to End Tests - Prod #99

Workflow file for this run

name: End to End Tests - Prod
on:
# Runs every Tuesday and Thursday at 2pm IST
schedule:
- cron: '30 8 * * 2,4'
jobs:
install:
runs-on: macos-latest
environment: End to End Test - Production
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
- name: Prepare for end to end tests
run: npm run setup:env
- name: Cache Dependencies
uses: actions/cache@v3
id: cache
with:
path: |
~/.cache/Cypress
node_modules
key: e2e-test-prod-cache-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Cypress install
if: steps.cache.outputs.cache-hit != 'true'
uses: cypress-io/github-action@v4
with:
install: true
runTests: false
end-to-end-test-prod:
runs-on: macos-latest
environment: End to End Test - Production
needs: install
strategy:
fail-fast: false
matrix:
containers: [1, 2, 3, 4, 5]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 14
- name: Prepare for end to end tests
run: npm run setup:env
- name: Cache Dependencies
uses: actions/cache@v3
id: cache
with:
path: |
~/.cache/Cypress
node_modules
key: e2e-test-prod-cache-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Cypress run
uses: cypress-io/github-action@v4
with:
install: false
record: true
browser: chrome
parallel: true
tag: ${{ secrets.E2E_TESTS_ENV }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
E2E_TESTS_REFRESH_TOKEN: ${{ secrets.E2E_TESTS_REFRESH_TOKEN }}
E2E_TESTS_ORG_ID: ${{ secrets.E2E_TESTS_ORG_ID }}
APP_URL: ${{ secrets.APP_URL }}