mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-22 09:08:01 +01:00
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:
parent
9ff08c2267
commit
aca317f785
8
.github/workflows/gradle-pr.yml
vendored
8
.github/workflows/gradle-pr.yml
vendored
@ -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
|
||||
|
8
.github/workflows/gradle.yml
vendored
8
.github/workflows/gradle.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user