Skip to content

Update actions version to work on node 20 #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 11 additions & 15 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
description: "enabled uploading coverage report to codecov"
required: false
default: false
secrets:
CODECOV_TOKEN:
description: "token to upload codecov report"
required: false

jobs:
check:
Expand All @@ -33,29 +37,21 @@ jobs:
with:
python-version-file: .ci-python-version
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1.1.0
uses: gradle/wrapper-validation-action@v2
- name: Cache konan
uses: actions/cache@v3.3.2
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
uses: gradle/[email protected]
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
arguments: |
--no-daemon
--info
${{ inputs.task }}
detektAll
ktlintCheck
apiCheck
koverXmlReport
-x :benchmark:benchmark
- run: ./gradlew --no-daemon --info ${{ inputs.task }} detektAll ktlintCheck apiCheck koverXmlReport -x :benchmark:benchmark
- name: Upload coverage reports to Codecov
if: inputs.upload-code-coverage
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ jobs:
distribution: temurin
java-version-file: .ci-java-version
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1.1.0
uses: gradle/wrapper-validation-action@v2
- name: Setup Gradle
uses: gradle/[email protected]
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
- name: Root Gradle Dependency Submission
uses: mikepenz/[email protected]
with:
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/platform-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,16 @@ jobs:
distribution: temurin
java-version-file: .ci-java-version
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1.1.0
uses: gradle/wrapper-validation-action@v2
- name: Cache konan
uses: actions/cache@v3.3.2
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
uses: gradle/[email protected]
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
arguments: |
--no-daemon
--info
:benchmark:benchmark
${{ inputs.additional-task }}
- run: ./gradlew --no-daemon --info :benchmark:benchmark ${{ inputs.additional-task }}
2 changes: 2 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
run-on: ubuntu-latest
task: linuxAllTest
upload-code-coverage: true
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
check-macos:
uses: ./.github/workflows/check.yml
with:
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v4
- name: Get version
id: versions
uses: HardNorth/github-version-generate@v1.3.0
uses: HardNorth/github-version-generate@v1.4.0
with:
version-source: file
version-file: ${{ env.VERSION_FILE }}
Expand All @@ -41,16 +41,16 @@ jobs:
with:
python-version-file: .ci-python-version
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1.1.0
uses: gradle/wrapper-validation-action@v2
- name: Cache konan
uses: actions/cache@v3.3.2
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
uses: gradle/[email protected]
uses: gradle/actions/setup-gradle@v3
env:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
Expand All @@ -59,14 +59,7 @@ jobs:
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
with:
gradle-version: wrapper
arguments: |
--no-daemon
--info
build
publish
closeAndReleaseStagingRepository
-Pversion=${{ needs.version.outputs.RELEASE_VERSION }}
-x :benchmark:benchmark
- run: ./gradlew --no-daemon --info build publish closeAndReleaseStagingRepository -Pversion=${{ needs.version.outputs.RELEASE_VERSION }} -x :benchmark:benchmark
create_release:
runs-on: ubuntu-latest
needs:
Expand Down Expand Up @@ -102,7 +95,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
id: create_release
uses: ncipollo/release-action@v1.13.0
uses: ncipollo/release-action@v1.14.0
with:
body: ${{ steps.build_changelog.outputs.changelog }}
name: Release ${{ needs.version.outputs.RELEASE_VERSION }}
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/snapshot_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ jobs:
with:
python-version-file: .ci-python-version
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1.1.0
uses: gradle/wrapper-validation-action@v2
- name: Cache konan
uses: actions/cache@v3.3.2
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
uses: gradle/[email protected]
uses: gradle/actions/setup-gradle@v3
env:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
Expand All @@ -41,14 +41,8 @@ jobs:
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
with:
gradle-version: wrapper
arguments: |
--no-daemon
--info
build
publish
koverXmlReport
-x :benchmark:benchmark
- run: ./gradlew --no-daemon --info build publish koverXmlReport-x :benchmark:benchmark
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project:
default:
target: 90%
threshold: 1%