Update OKHttp to address security vulneratbility. (#831) #691
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: build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [ opened, labeled, unlabeled, synchronize ] | |
env: | |
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false" | |
jobs: | |
jvm: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java-version: | |
- 8 | |
- 11 | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v3 | |
- name: Validate Gradle Wrapper | |
uses: gradle/[email protected] | |
- name: Configure JDK | |
uses: actions/[email protected] | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.java-version }} | |
- name: Run build with caching enabled | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: clean build -s | |
- name: Run examples | |
run: | | |
export VERSION_NAME=$(cat gradle.properties | grep -w "VERSION_NAME" | cut -d'=' -f2) | |
rm -rf ~/.m2/repository/com/github/ben-manes/gradle-versions-plugin/$VERSION_NAME | |
./gradlew publishToMavenLocal -x test -s | |
cat ~/.m2/repository/com/github/ben-manes/gradle-versions-plugin/$VERSION_NAME/gradle-versions-plugin-$VERSION_NAME.pom | |
cd examples/groovy/ && ../../gradlew dU && cd - | |
cd examples/kotlin/ && ../../gradlew dU && cd - | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: gradle-versions-plugin-${{ github.workflow }}-${{ github.run_id }} | |
path: | | |
build/libs | |
build/outputs | |
build/publications | |
build/distributions | |
build/reports | |
build/test-results | |
if-no-files-found: warn |