Update openjdk Docker tag to v21 #473
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
cache: gradle | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@216d1ad2b3710bf005dc39237337b9673fd8fcd5 | |
- 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/ |