mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
* ACS-4534 Added nx workspace support * ACS-4534 Updated package-lock.json file * ACS-4534 Configured cache directory and affected command * ACS-4534 Updated README * ACS-4534 Updated more README files * ACS-4534 Fixed lint * ACS-4534 Address comment for readme * ACS-4534 Removed redundant build-libs script * ACS-4534 Fixed start script * ACS-4534 Updated some left documentation * ACS-4534 Added more helper scripts, addressed PR comments * ACS-4534 Updated package-lock.json after rebasing * ACS-4534 Fix stylelint issue
53 lines
2.0 KiB
YAML
53 lines
2.0 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'
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Setup and run with options
|
|
shell: bash
|
|
run: |
|
|
./node_modules/.bin/tsc -p "./e2e/$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_PLUGIN_FOLDER_RULES=true"
|
|
echo "APP_CONFIG_PLUGIN_AOS=true"
|
|
echo "APP_CONFIG_PLUGIN_CONTENT_SERVICE=true"
|
|
echo "APP_CONFIG_ENABLE_MOBILE_APP_SWITCH=false"
|
|
echo "APP_CONFIG_PROVIDER=ECM"
|
|
echo "APP_CONFIG_AUTH_TYPE=BASIC"
|
|
echo "APP_CONFIG_OAUTH2_HOST=http://localhost:4200/auth/realms/alfresco"
|
|
echo "APP_CONFIG_OAUTH2_CLIENTID=alfresco"
|
|
echo "APP_CONFIG_SESSION_TIME_FOR_OPEN_APP_DIALOG_DISPLAY_IN_HOURS=12"
|
|
echo "APP_CONFIG_OAUTH2_IMPLICIT_FLOW=true"
|
|
echo "APP_CONFIG_OAUTH2_SILENT_LOGIN=true"
|
|
echo "APP_CONFIG_OAUTH2_REDIRECT_LOGOUT=/"
|
|
echo "APP_CONFIG_OAUTH2_REDIRECT_LOGIN=/"
|
|
echo "APP_CONFIG_OAUTH2_REDIRECT_SILENT_IFRAME_URI={protocol}//{hostname}{:port}/assets/silent-refresh.html"
|
|
} >> .env
|
|
|
|
npm start content-ce > /dev/null &\
|
|
|
|
if [ ${{ inputs.test-runner }} == "playwright" ]; then
|
|
echo "Running playwright tests with options ${{ inputs.options }}"
|
|
sleep 90
|
|
npx playwright test --config ${{ inputs.options }}
|
|
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
|