mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
* use default "sessionTimeForOpenAppDialogDisplay" * improve iPhone prefix url api * improve android prefix url api * session timeout * app store url defaults * enable mobile redirect by default * enable AOS by default * enable content plugins by default * enable folder rules by default * remove obsolete AI flag * remove obsolete APA flag * auto download defaults * cleanup auth vars
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
name: "Run e2e"
|
|
description: "Run e2e"
|
|
|
|
inputs:
|
|
options:
|
|
description: 'Options'
|
|
required: true
|
|
type: string
|
|
test-runner:
|
|
description: 'Test runner'
|
|
required: false
|
|
type: string
|
|
default: 'protractor'
|
|
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: |
|
|
./node_modules/.bin/tsc -p "./e2e/protractor/$E2E_TSCONFIG" || exit 1;
|
|
# npx http-server -c-1 $CONTENT_CE_DIST_PATH -p 4200 > /dev/null &\
|
|
|
|
{
|
|
echo "APP_CONFIG_ECM_HOST={protocol}//{hostname}{:port}"
|
|
echo "APP_CONFIG_PROVIDER=ECM"
|
|
echo "APP_CONFIG_AUTH_TYPE=BASIC"
|
|
echo "APP_CONFIG_OAUTH2_HOST=http://localhost:4200/auth/realms/alfresco"
|
|
} >> .env
|
|
|
|
npm start > /dev/null &\
|
|
|
|
if [ ${{ inputs.test-runner }} == "playwright" ]; then
|
|
echo "Running playwright tests with options ${{ inputs.options }}"
|
|
sleep 90
|
|
npx nx run ${{ inputs.options }}-e2e:e2e
|
|
else
|
|
echo "Running protractor tests with options ${{ inputs.options }}"
|
|
echo "./node_modules/.bin/protractor \"./protractor.conf.js\" ${{ inputs.options }} || exit 1"
|
|
./node_modules/.bin/protractor "./protractor.conf.js" ${{ inputs.options }} $E2E_PROTRACTOR_OPTS || exit 1
|
|
fi
|
|
|
|
- name: Upload E2Es results
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ${{ inputs.artifact-name }}
|
|
path: test-results/
|