mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-03 15:08:12 +01:00
Move some test preparation steps after jar build step
This commit is contained in:
parent
012b61c21d
commit
f1b2d1ec3c
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
@ -31,20 +31,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
- name: 🚦 Setup Selenium Webdriver
|
|
||||||
uses: nanasess/setup-chromedriver@v2
|
|
||||||
- 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] }}
|
|
||||||
run: |
|
|
||||||
while ! mysqladmin ping -h"127.0.0.1" -P"$PORT" --silent; do
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
- name: 💼 Load Gradle Cache
|
- name: 💼 Load Gradle Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
@ -77,6 +63,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: PlanFabric-${{ env.versionString }}-${{ env.git_hash }}.jar
|
name: PlanFabric-${{ env.versionString }}-${{ env.git_hash }}.jar
|
||||||
path: ${{ env.artifactPath }}/PlanFabric-${{ env.snapshotVersion }}.jar
|
path: ${{ env.artifactPath }}/PlanFabric-${{ env.snapshotVersion }}.jar
|
||||||
|
- name: 🚦 Setup Selenium Webdriver
|
||||||
|
uses: nanasess/setup-chromedriver@v2
|
||||||
|
- 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] }}
|
||||||
|
run: |
|
||||||
|
while ! mysqladmin ping -h"127.0.0.1" -P"$PORT" --silent; do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
- name: 🩺 Test
|
- name: 🩺 Test
|
||||||
env:
|
env:
|
||||||
MYSQL_DB: test
|
MYSQL_DB: test
|
||||||
|
Loading…
Reference in New Issue
Block a user