mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
* use latest ADF alphas * use latest ADF alphas * use ECM provider by default * use BASIC auth by default * defaults for oauth host * remove unused vars
44 lines
986 B
YAML
44 lines
986 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: |
|
|
# npx http-server -c-1 $CONTENT_CE_DIST_PATH -p 4200 > /dev/null &\
|
|
|
|
{
|
|
echo "APP_CONFIG_ECM_HOST={protocol}//{hostname}{:port}"
|
|
} >> .env
|
|
|
|
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@v3
|
|
with:
|
|
name: ${{ inputs.artifact-name }}
|
|
path: test-results/
|