diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 13dead5..12452a9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,12 +9,19 @@ jobs: steps: - uses: actions/checkout@v3 - - name: set up JDK 17 + with: + fetch-depth: 0 + - uses: actions/cache@v3 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Set up JDK uses: actions/setup-java@v3 with: - distribution: 'temurin' java-version: 17 - cache: 'gradle' + distribution: 'temurin' - name: Build with Gradle run: ./gradlew clean build koverVerify koverXmlReport - name: Upload coverage reports to Codecov