mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACS-8153] delete protractor e2e configuration and files (#3885)
* [ACS-8153] delete protractor e2e configuration and files * [ACS-8153] util fix * [ACS-8153] pr fix * [ACS-81532] remove e2e package.json * [ACS-81532] remove chrome configuration * package-lock file
This commit is contained in:
1
.github/actions/adf-linking/action.yml
vendored
1
.github/actions/adf-linking/action.yml
vendored
@@ -11,7 +11,6 @@ runs:
|
||||
if [[ $COMMIT_MESSAGE == *"[link-adf:"* ]]; then
|
||||
echo "BUILD_OPTS=--configuration=adf,e2e" >> $GITHUB_ENV
|
||||
echo "TEST_OPTS=--configuration=adfprod" >> $GITHUB_ENV
|
||||
echo "E2E_PROTRACTOR_OPTS=--with-local-adf" >> $GITHUB_ENV
|
||||
echo "E2E_TSCONFIG=tsconfig.e2e.adf.json" >> $GITHUB_ENV
|
||||
|
||||
BRANCH=`echo $COMMIT_MESSAGE | grep -o "\[link-adf\:[^]]*\]" | sed -e 's#\[link-adf:##g' | sed -e 's#\]##g'`
|
||||
|
21
.github/actions/before-e2e/action.yml
vendored
21
.github/actions/before-e2e/action.yml
vendored
@@ -1,30 +1,9 @@
|
||||
name: "Before e2e"
|
||||
description: "Before e2e"
|
||||
|
||||
inputs:
|
||||
e2e-protractor:
|
||||
description: 'is e2e run with protractor'
|
||||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Check content UP
|
||||
shell: bash
|
||||
run: ./node_modules/@alfresco/adf-cli/bin/adf-cli check-cs-env --host $BASE_URL -u $ADMIN_EMAIL -p $ADMIN_PASSWORD || exit 1
|
||||
|
||||
- name: Install google chrome v114
|
||||
shell: bash
|
||||
run: |
|
||||
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
||||
sudo apt install ./google-chrome-stable_current_amd64.deb
|
||||
sudo ln -s /usr/bin/google-chrome /usr/bin/chrome
|
||||
chrome --version
|
||||
|
||||
- name: Update webdriver-manager
|
||||
if: ${{ inputs.e2e-protractor == 'true' }}
|
||||
shell: bash
|
||||
run: |
|
||||
npm run update-webdriver
|
||||
|
43
.github/actions/run-e2e/action.yml
vendored
43
.github/actions/run-e2e/action.yml
vendored
@@ -1,43 +0,0 @@
|
||||
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;
|
||||
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: e2e-output/
|
3
.github/actions/setup/action.yml
vendored
3
.github/actions/setup/action.yml
vendored
@@ -9,11 +9,8 @@ runs:
|
||||
run: |
|
||||
echo "BUILD_OPTS=--configuration=production,e2e" >> $GITHUB_ENV
|
||||
echo "TEST_OPTS=" >> $GITHUB_ENV
|
||||
echo "E2E_PROTRACTOR_OPTS=" >> $GITHUB_ENV
|
||||
echo "E2E_TSCONFIG=tsconfig.e2e.json" >> $GITHUB_ENV
|
||||
echo "GIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
||||
echo "SMART_RUNNER_DIRECTORY=.protractor-smartrunner" >> $GITHUB_ENV
|
||||
echo "BASE_HASH=.protractor-smartrunner" >> $GITHUB_ENV
|
||||
echo "HEAD_HASH=HEAD" >> $GITHUB_ENV
|
||||
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.35.0
|
||||
|
2
.github/workflows/pull-request.yml
vendored
2
.github/workflows/pull-request.yml
vendored
@@ -151,8 +151,6 @@ jobs:
|
||||
|
||||
- name: Before e2e
|
||||
uses: ./.github/actions/before-e2e
|
||||
with:
|
||||
e2e-protractor: false
|
||||
|
||||
- name: before playwright
|
||||
shell: bash
|
||||
|
Reference in New Issue
Block a user