Skip to content

Commit 68c13c1

Browse files
authored
Update actions version to work on node 20 (#52)
+ Add codecov.yml config to configure a small threshold for coverage changes
1 parent 12f5fc2 commit 68c13c1

File tree

7 files changed

+40
-51
lines changed

7 files changed

+40
-51
lines changed

.github/workflows/check.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
description: "enabled uploading coverage report to codecov"
1717
required: false
1818
default: false
19+
secrets:
20+
CODECOV_TOKEN:
21+
description: "token to upload codecov report"
22+
required: false
1923

2024
jobs:
2125
check:
@@ -33,29 +37,21 @@ jobs:
3337
with:
3438
python-version-file: .ci-python-version
3539
- name: Validate Gradle Wrapper
36-
uses: gradle/wrapper-validation-action@v1.1.0
40+
uses: gradle/wrapper-validation-action@v2
3741
- name: Cache konan
38-
uses: actions/cache@v3.3.2
42+
uses: actions/cache@v4
3943
with:
4044
path: ~/.konan
4145
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
4246
restore-keys: |
4347
${{ runner.os }}-gradle-
4448
- name: Build with Gradle
45-
uses: gradle/gradle-build-action@v2.11.1
49+
uses: gradle/actions/setup-gradle@v3
4650
with:
4751
gradle-version: wrapper
48-
arguments: |
49-
--no-daemon
50-
--info
51-
${{ inputs.task }}
52-
detektAll
53-
ktlintCheck
54-
apiCheck
55-
koverXmlReport
56-
-x :benchmark:benchmark
52+
- run: ./gradlew --no-daemon --info ${{ inputs.task }} detektAll ktlintCheck apiCheck koverXmlReport -x :benchmark:benchmark
5753
- name: Upload coverage reports to Codecov
5854
if: inputs.upload-code-coverage
59-
uses: codecov/codecov-action@v3
60-
env:
61-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
55+
uses: codecov/codecov-action@v4
56+
with:
57+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/dependencies.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ jobs:
1818
distribution: temurin
1919
java-version-file: .ci-java-version
2020
- name: Validate Gradle Wrapper
21-
uses: gradle/wrapper-validation-action@v1.1.0
21+
uses: gradle/wrapper-validation-action@v2
2222
- name: Setup Gradle
23-
uses: gradle/gradle-build-action@v2.11.1
23+
uses: gradle/actions/setup-gradle@v3
24+
with:
25+
gradle-version: wrapper
2426
- name: Root Gradle Dependency Submission
2527
uses: mikepenz/gradle-dependency-submission@v0.9.1
2628
with:

.github/workflows/platform-benchmark.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,16 @@ jobs:
2626
distribution: temurin
2727
java-version-file: .ci-java-version
2828
- name: Validate Gradle Wrapper
29-
uses: gradle/wrapper-validation-action@v1.1.0
29+
uses: gradle/wrapper-validation-action@v2
3030
- name: Cache konan
31-
uses: actions/cache@v3.3.2
31+
uses: actions/cache@v4
3232
with:
3333
path: ~/.konan
3434
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
3535
restore-keys: |
3636
${{ runner.os }}-gradle-
3737
- name: Build with Gradle
38-
uses: gradle/gradle-build-action@v2.11.1
38+
uses: gradle/actions/setup-gradle@v3
3939
with:
4040
gradle-version: wrapper
41-
arguments: |
42-
--no-daemon
43-
--info
44-
:benchmark:benchmark
45-
${{ inputs.additional-task }}
41+
- run: ./gradlew --no-daemon --info :benchmark:benchmark ${{ inputs.additional-task }}

.github/workflows/pull_request.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
run-on: ubuntu-latest
1818
task: linuxAllTest
1919
upload-code-coverage: true
20+
secrets:
21+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2022
check-macos:
2123
uses: ./.github/workflows/check.yml
2224
with:

.github/workflows/release.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020
- name: Get version
2121
id: versions
22-
uses: HardNorth/github-version-generate@v1.3.0
22+
uses: HardNorth/github-version-generate@v1.4.0
2323
with:
2424
version-source: file
2525
version-file: ${{ env.VERSION_FILE }}
@@ -41,16 +41,16 @@ jobs:
4141
with:
4242
python-version-file: .ci-python-version
4343
- name: Validate Gradle Wrapper
44-
uses: gradle/wrapper-validation-action@v1.1.0
44+
uses: gradle/wrapper-validation-action@v2
4545
- name: Cache konan
46-
uses: actions/cache@v3.3.2
46+
uses: actions/cache@v4
4747
with:
4848
path: ~/.konan
4949
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
5050
restore-keys: |
5151
${{ runner.os }}-gradle-
5252
- name: Build with Gradle
53-
uses: gradle/gradle-build-action@v2.11.1
53+
uses: gradle/actions/setup-gradle@v3
5454
env:
5555
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
5656
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
@@ -59,14 +59,7 @@ jobs:
5959
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
6060
with:
6161
gradle-version: wrapper
62-
arguments: |
63-
--no-daemon
64-
--info
65-
build
66-
publish
67-
closeAndReleaseStagingRepository
68-
-Pversion=${{ needs.version.outputs.RELEASE_VERSION }}
69-
-x :benchmark:benchmark
62+
- run: ./gradlew --no-daemon --info build publish closeAndReleaseStagingRepository -Pversion=${{ needs.version.outputs.RELEASE_VERSION }} -x :benchmark:benchmark
7063
create_release:
7164
runs-on: ubuntu-latest
7265
needs:
@@ -102,7 +95,7 @@ jobs:
10295
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10396
- name: Create release
10497
id: create_release
105-
uses: ncipollo/release-action@v1.13.0
98+
uses: ncipollo/release-action@v1.14.0
10699
with:
107100
body: ${{ steps.build_changelog.outputs.changelog }}
108101
name: Release ${{ needs.version.outputs.RELEASE_VERSION }}

.github/workflows/snapshot_release.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ jobs:
2323
with:
2424
python-version-file: .ci-python-version
2525
- name: Validate Gradle Wrapper
26-
uses: gradle/wrapper-validation-action@v1.1.0
26+
uses: gradle/wrapper-validation-action@v2
2727
- name: Cache konan
28-
uses: actions/cache@v3.3.2
28+
uses: actions/cache@v4
2929
with:
3030
path: ~/.konan
3131
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
3232
restore-keys: |
3333
${{ runner.os }}-gradle-
3434
- name: Build with Gradle
35-
uses: gradle/gradle-build-action@v2.11.1
35+
uses: gradle/actions/setup-gradle@v3
3636
env:
3737
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
3838
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
@@ -41,14 +41,8 @@ jobs:
4141
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
4242
with:
4343
gradle-version: wrapper
44-
arguments: |
45-
--no-daemon
46-
--info
47-
build
48-
publish
49-
koverXmlReport
50-
-x :benchmark:benchmark
44+
- run: ./gradlew --no-daemon --info build publish koverXmlReport-x :benchmark:benchmark
5145
- name: Upload coverage reports to Codecov
52-
uses: codecov/codecov-action@v3
53-
env:
54-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
46+
uses: codecov/codecov-action@v4
47+
with:
48+
token: ${{ secrets.CODECOV_TOKEN }}

codecov.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: 90%
6+
threshold: 1%

0 commit comments

Comments
 (0)