Update dependency gradle to v8.6 (#233) #632
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 and test | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build_and_test_with_code_coverage: | |
name: Build and test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
steps: | |
# actions/checkout v1.* is needed for correct codecov upload, see https://github.com/actions/checkout/issues/237 for details | |
- uses: actions/checkout@v4 | |
# ensure that gradle wrapper files in repository are valid by checking checksums | |
- uses: gradle/wrapper-validation-action@v1 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 8 | |
distribution: zulu | |
- name: Cache konan | |
uses: actions/cache@v3 | |
with: | |
path: ~/.konan | |
key: ${{ runner.os }}-gradle-konan | |
restore-keys: | | |
${{ runner.os }}-gradle-konan | |
- name: Gradle build with remote cache | |
uses: burrunan/gradle-cache-action@v1 | |
with: | |
arguments: | | |
build | |
-x detekt | |
properties: | | |
org.gradle.caching=true | |
gradle-version: wrapper | |
# additional files to calculate key for dependency cache | |
gradle-dependencies-cache-key: | | |
buildSrc/**/Versions.kt | |
- name: Upload gradle reports | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: gradle-reports-${{ matrix.os }} | |
path: '**/build/reports/' | |
- name: Code coverage report | |
#if: ${{ runner.os == 'Linux' }} | |
if: ${{ false }} | |
uses: codecov/codecov-action@v3 | |
with: | |
flags: unittests | |
fail_ci_if_error: true # optional (default = false) |