diff --git a/.github/workflows/test-sdk.yaml b/.github/workflows/test-sdk.yaml index c56c58e2..12dc801c 100644 --- a/.github/workflows/test-sdk.yaml +++ b/.github/workflows/test-sdk.yaml @@ -14,10 +14,24 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: set up JDK 11 - uses: actions/setup-java@v1 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 with: - java-version: 11 + java-version: '11' + distribution: 'adopt' + + - name: Restore gradle.properties + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} + shell: bash + run: | + mkdir -p ~/.gradle/ + echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV + echo "MAVEN_USERNAME=${MAVEN_USERNAME}" > ~/.gradle/gradle.properties + echo "MAVEN_PASSWORD=${MAVEN_PASSWORD}" >> ~/.gradle/gradle.properties + - name: Build with Gradle run: ./gradlew build