mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-03 06:57:36 +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:
|
with:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: '16'
|
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
|
- name: Verify MariaDB connection
|
||||||
env:
|
env:
|
||||||
PORT: ${{ job.services.mariadb.ports[3306] }}
|
PORT: ${{ job.services.mariadb.ports[3306] }}
|
||||||
@ -49,6 +56,7 @@ jobs:
|
|||||||
MYSQL_USER: user
|
MYSQL_USER: user
|
||||||
MYSQL_PASS: password
|
MYSQL_PASS: password
|
||||||
MYSQL_PORT: ${{ job.services.mariadb.ports[3306] }}
|
MYSQL_PORT: ${{ job.services.mariadb.ports[3306] }}
|
||||||
|
CHROMEDRIVER: /usr/local/bin/chromedriver
|
||||||
run: |
|
run: |
|
||||||
cd Plan
|
cd Plan
|
||||||
./gradlew build
|
./gradlew build
|
||||||
|
8
.github/workflows/gradle.yml
vendored
8
.github/workflows/gradle.yml
vendored
@ -29,6 +29,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: '16'
|
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
|
- name: Verify MariaDB connection
|
||||||
env:
|
env:
|
||||||
PORT: ${{ job.services.mariadb.ports[3306] }}
|
PORT: ${{ job.services.mariadb.ports[3306] }}
|
||||||
@ -51,6 +58,7 @@ jobs:
|
|||||||
MYSQL_USER: user
|
MYSQL_USER: user
|
||||||
MYSQL_PASS: password
|
MYSQL_PASS: password
|
||||||
MYSQL_PORT: ${{ job.services.mariadb.ports[3306] }}
|
MYSQL_PORT: ${{ job.services.mariadb.ports[3306] }}
|
||||||
|
CHROMEDRIVER: /usr/local/bin/chromedriver
|
||||||
run: |
|
run: |
|
||||||
cd Plan
|
cd Plan
|
||||||
./gradlew build
|
./gradlew build
|
||||||
|
Loading…
Reference in New Issue
Block a user