Skip to content

Cypress Tests using Cypress Docker Image #4

Cypress Tests using Cypress Docker Image

Cypress Tests using Cypress Docker Image #4

Workflow file for this run

name: Cypress Tests using Cypress Docker Image
on:
workflow_call:
inputs:
environment:
required: true
type: string
secrets:
TRAMS_API_KEY:
required: true
TRAMS_API_BASE_URL:
required: true
workflow_dispatch:
inputs:
environment:
description: 'Environment to run tests against'
required: true
type: environment
concurrency:
group: ${{ github.workflow }}
jobs:
cypress-tests:
name: Run Cypress Tests
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
strategy:
matrix:
browser: [
"edge"
]
container:
image: cypress/browsers:22.12.0
defaults:
run:
working-directory: CypressTests/
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Run
uses: cypress-io/github-action@v6
env:
CYPRESS_apiKey: ${{ secrets.TRAMS_API_KEY }}
CYPRESS_url: ${{ secrets.TRAMS_API_BASE_URL }}
with:
browser: ${{ matrix.browser }}
working-directory: CypressTests
- name: Upload screenshots
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: screenshots-${{ inputs.environment }}-${{ matrix.browser }}
path: screenshots