mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
* [ACS-7260] Added Playwright artifacts to github actions * [ACS-7260] test path destintations * [ACS-7260] review fix 1 * [ACS-7260] test path destinations 2 * [ACS-7260] make one test fail for playwright raports * [ACS-7260] test path destinations 3 * [ACS-7260] * [ACS-7260] final commit
39 lines
818 B
YAML
39 lines
818 B
YAML
name: "Run e2e Playwright"
|
|
description: "Run e2e Playwright"
|
|
|
|
inputs:
|
|
options:
|
|
description: 'Options'
|
|
required: true
|
|
type: string
|
|
test-runner:
|
|
description: 'Test runner'
|
|
required: false
|
|
type: string
|
|
default: 'Playwright'
|
|
artifact-name:
|
|
description: Name of the artifact cache
|
|
required: true
|
|
type: string
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
|
|
- name: Setup and run with options
|
|
shell: bash
|
|
run: |
|
|
npm start > /dev/null &\
|
|
|
|
echo "Running playwright tests with options ${{ inputs.options }}"
|
|
sleep 90
|
|
npx nx run ${{ inputs.options }}-e2e:e2e
|
|
|
|
- name: Upload E2Es results
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ inputs.artifact-name }}
|
|
path: |
|
|
test-results/
|