Files
alfresco-content-app/.github/actions/run-e2e-playwright/action.yml
Adam Świderski f2d78f165c [ACS-7260] Added Playwright artifacts to github actions (#3706)
* [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
2024-03-15 10:43:33 +01:00

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/