-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (47 loc) · 1.61 KB
/
pr-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Test for Pull Request & Merge branches
on:
workflow_dispatch:
push:
{}
pull_request:
types: [opened, reopened ]
jobs:
test_for_pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
# curl -sL -o chromedriver-linux64.zip $(curl 'https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json' | jq -r '.channels.Stable.downloads.chromedriver[] | select(.platform == "linux64") | .url')
- uses: logikal-io/run-logikal-playbook@v1
with:
roles: chrome,chromedriver
vars: '{"_chrome_version": "119.0.6045.105", "_chromedriver_version": "119.0.6045.105"}'
- name: Confirm chromedriver version
run: |
chromedriver --version
- name: Gauge install
run: |
curl -SsL https://downloads.gauge.org/stable | sh
gauge install java --version 0.7.15
gauge install screenshot
gauge install html-report
gauge version
- name: Start Database
run: |
cd playtest-gauge-db/docker/db/postgresql/
docker compose up -d
- name: Run test
run: |
gauge config runner_connection_timeout 180000
gauge config runner_request_timeout 180000
for MVN_PROJ in playtest-browser playtest-db playtest-gauge-db playtest-gauge-rest playtest-json
do
pushd $MVN_PROJ
mvn test
popd
done