Add selenium setup to workflow (#2291)

* Add selenium setup to workflow
* Set up Selenium for Gradle PR workflow

Affects issues:
- Close #2290
This commit is contained in:
Aurora Lahtela 2022-02-28 19:20:36 +02:00 committed by GitHub
parent 9ff08c2267
commit aca317f785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -27,6 +27,13 @@ jobs:
with:
distribution: 'adopt'
java-version: '16'
- name: Setup Selenium Webdriver
uses: nanasess/setup-chromedriver@v1
- name: Setup Selenium Webdriver settings
run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
- name: Verify MariaDB connection
env:
PORT: ${{ job.services.mariadb.ports[3306] }}
@ -49,6 +56,7 @@ jobs:
MYSQL_USER: user
MYSQL_PASS: password
MYSQL_PORT: ${{ job.services.mariadb.ports[3306] }}
CHROMEDRIVER: /usr/local/bin/chromedriver
run: |
cd Plan
./gradlew build

View File

@ -29,6 +29,13 @@ jobs:
with:
distribution: 'adopt'
java-version: '16'
- name: Setup Selenium Webdriver
uses: nanasess/setup-chromedriver@v1
- name: Setup Selenium Webdriver settings
run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
- name: Verify MariaDB connection
env:
PORT: ${{ job.services.mariadb.ports[3306] }}
@ -51,6 +58,7 @@ jobs:
MYSQL_USER: user
MYSQL_PASS: password
MYSQL_PORT: ${{ job.services.mariadb.ports[3306] }}
CHROMEDRIVER: /usr/local/bin/chromedriver
run: |
cd Plan
./gradlew build