-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (41 loc) · 1.64 KB
/
integration-tests.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
name: Integration tests - Corretto JDK 8
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up JDK 17
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
with:
java-version: '17'
distribution: 'corretto'
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@5188e9b5527a0a094cee21e2fe9a8ca44b4629af
- name: Build & Test
run: |
chromeBrowserVersionRegex='Google Chrome ([0-9]{1,4}.[0-9]{1,4}.[0-9]{1,4}).[0-9]*'
rawChromeBrowserVersion=$(google-chrome --version)
[[ $rawChromeBrowserVersion =~ $chromeBrowserVersionRegex ]]
export CHROME_BROWSER_VERSION=${BASH_REMATCH[1]}
chromeDriverVersionRegex='ChromeDriver ([0-9]{1,4}.[0-9]{1,4}.[0-9]{1,4}).[0-9]*'
rawChromeDriverVersion=$(chromedriver --version)
[[ $rawChromeDriverVersion =~ $chromeDriverVersionRegex ]]
export CHROME_DRIVER_VERSION=${BASH_REMATCH[1]}
echo "Using $CHROME_BROWSER_VERSION browser version with $CHROME_DRIVER_VERSION driver"
./gradlew --no-daemon --console=plain build test
- name: Archive test results
if: always()
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
with:
name: test-results
path: |
swagger-brake-integration-tests/build/reports/