mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-8045] update chrome driver settings (#3862)
* [ACS-8045]update ACA chrome driver * [ACS-8045]update ACA chrome driver to stable * [ACS-8045]update ACA chrome driver script * [ACS-8045]revert chrome driver script * update webdriver tesst * Update action.yml * update webdriver command * update webdriver new script * remove chrome install step * remove chrome webdriver update twice * add chrome webdriver update step * e2e run command update * e2e run command update * e2e run command update * remove temp e2e
This commit is contained in:
24
.github/actions/before-e2e/action.yml
vendored
24
.github/actions/before-e2e/action.yml
vendored
@@ -1,6 +1,13 @@
|
||||
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:
|
||||
@@ -8,23 +15,16 @@ runs:
|
||||
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
|
||||
- name: Install google chrome v114
|
||||
shell: bash
|
||||
run: |
|
||||
wget -q https://mirror.cs.uchicago.edu/google-chrome/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.106-1_amd64.deb
|
||||
sudo apt install -y --allow-downgrades ./google-chrome-stable_114.0.5735.106-1_amd64.deb
|
||||
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 install -g webdriver-manager
|
||||
if [ "$CI" = "true" ]; then
|
||||
export chrome=$(google-chrome --product-version)
|
||||
echo "Updating wevdriver-manager with chromedriver: $chrome."
|
||||
webdriver-manager update --gecko=false --versions.chrome=$chrome
|
||||
else
|
||||
echo "Updating wedriver-manager with latest chromedriver, be sure to use evergreen Chrome."
|
||||
webdriver-manager update --gecko=false
|
||||
fi
|
||||
npm run update-webdriver
|
||||
|
10
.github/workflows/pull-request.yml
vendored
10
.github/workflows/pull-request.yml
vendored
@@ -129,7 +129,10 @@ jobs:
|
||||
path: ./dist/content-ce
|
||||
key: cache-dist-${{ github.run_id }}
|
||||
|
||||
- uses: ./.github/actions/before-e2e
|
||||
- name: Before e2e
|
||||
uses: ./.github/actions/before-e2e
|
||||
with:
|
||||
e2e-protractor: true
|
||||
|
||||
- uses: ./.github/actions/run-e2e
|
||||
with:
|
||||
@@ -194,7 +197,10 @@ jobs:
|
||||
path: ./dist/content-ce
|
||||
key: cache-dist-${{ github.run_id }}
|
||||
|
||||
- uses: ./.github/actions/before-e2e
|
||||
- name: Before e2e
|
||||
uses: ./.github/actions/before-e2e
|
||||
with:
|
||||
e2e-protractor: false
|
||||
|
||||
- name: before playwright
|
||||
shell: bash
|
||||
|
Reference in New Issue
Block a user