Skip to content

Update actions/checkout digest to 11bd719 #480

Update actions/checkout digest to 11bd719

Update actions/checkout digest to 11bd719 #480

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@a5ac7e51b41094c92402da3b24376905380afc29 # 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@65462800fd760344b1a7b4382951275a0abb4808 # v4
with:
name: test-results
path: |
swagger-brake-integration-tests/build/reports/