This repository has been archived by the owner on May 6, 2024. It is now read-only.
Bump @vue/runtime-dom from 3.2.45 to 3.4.21 #426
Workflow file for this run
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: Run Cypress Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
permissions: read-all | |
jobs: | |
install: | |
name: cypress-e2e-run | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
containers: [chrome, firefox, edge, webkit] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Read .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
id: nvm | |
- name: Use Node.js (.nvmrc) | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
- name: Install dependencies | |
run: npm ci | |
- name: Install WebKit browser dependencies | |
if: ${{ (matrix.containers == 'webkit') }} | |
uses: cypress-io/github-action@v5 | |
with: | |
build: npx playwright install-deps webkit | |
runTests: false | |
- name: Set Branch Based Cypress Config file | |
env: | |
SITE_PREFIX: ${{ secrets.SITE_PREFIX }} | |
run: | | |
if [[ ${{ github.head_ref || github.ref_name }} == "prod" ]]; then sed -i "s#^ baseUrl: .*# baseUrl: 'https://benefits-tool.usa.gov/',#" cypress.config.js; elif [[ ${{ github.head_ref || github.ref_name }} == "release" ]]; then sed -i "s#^ baseUrl: .*# baseUrl: 'https://benefits-tool-demo.usa.gov/',#" cypress.config.js; else sed -i "s#^ baseUrl: .*# baseUrl: '${SITE_PREFIX}${{ github.head_ref || github.ref_name }}',#" cypress.config.js; fi | |
- name: Test if cypress config file is configured correctly | |
run: | | |
pwd | |
cat cypress.config.js | |
- name: Cypress run | |
uses: cypress-io/github-action@v5 | |
with: | |
browser: ${{ matrix.containers }} | |
start: npm run federalist | |
- uses: actions/upload-artifact@v3 | |
if: failure () | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots |