Skip to content
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

Node v20 compatibility #82

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
13 changes: 7 additions & 6 deletions .github/workflows/ci-gradle-nexus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- uses: gradle/wrapper-validation-action@v1
########################
# The biggest divergence point is choosing between actions/setup-java or graalvm
- uses: actions/setup-java@v3.10.0
- uses: actions/setup-java@v4
if: (!(inputs.build_on_graal))
with:
distribution: temurin
Expand All @@ -98,19 +99,19 @@ jobs:
if: inputs.build_on_graal && inputs.install_graal_languages != ''
run: gu install ${{ inputs.install_graal_languages }}
########################
- uses: google-github-actions/auth@v1
- uses: google-github-actions/auth@v2
if: inputs.setup_google_cloud_auth
with:
credentials_json: ${{ secrets.GCR_KEY }}
- uses: google-github-actions/setup-gcloud@v1.1.1
- uses: google-github-actions/setup-gcloud@v2
if: inputs.setup_google_cloud_auth
- name: build
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3
with:
arguments: ${{ env.GRADLE_SWITCHES }} build
- name: publish-snapshots
if: inputs.publish_snapshots && github.event_name != 'pull_request' && github.repository_owner == 'moderneinc'
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3
with:
arguments: ${{ env.GRADLE_SWITCHES }} snapshot publish -PforceSigning -x test
env:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/ci-gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,27 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- name: Setup git user
run: |
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ inputs.java_version }}
- uses: google-github-actions/auth@v1
- uses: google-github-actions/auth@v2
if: inputs.setup_google_cloud_auth
with:
credentials_json: ${{ secrets.GCR_KEY }}
- uses: google-github-actions/setup-gcloud@v1.1.1
- uses: google-github-actions/setup-gcloud@v2
if: inputs.setup_google_cloud_auth
- name: build
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3
with:
arguments: ${{ env.GRADLE_SWITCHES }} build
- name: publish-tests
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/publish-containerized-gradle-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v3
show-progress: false
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ inputs.java_version }}
Expand All @@ -35,18 +36,18 @@ jobs:
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"

- uses: google-github-actions/auth@v1
- uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCR_KEY }}
- uses: google-github-actions/setup-gcloud@v1.1.1
- uses: google-github-actions/setup-gcloud@v2

- run: gcloud auth configure-docker
- run: rm -rf /opt/hostedtoolcache/CodeQL
- run: rm -rf /opt/hostedtoolcache/Ruby
- run: rm -rf /opt/hostedtoolcache/go
- run: rm -rf /opt/hostedtoolcache/node
- name: build, tag, and push docker image
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3
env:
TESTCONTAINERS_RYUK_DISABLED: true
GRGIT_USER: ${{ github.actor }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/publish-maven-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ jobs:
if: github.repository_owner == 'moderneinc'
steps:
- name: git-checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- name: set-up-jdk
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
Expand All @@ -58,9 +59,9 @@ jobs:
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: setup-gcloud
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.google_cloud_service_account_key }}
- uses: google-github-actions/setup-gcloud@v1.1.1
- uses: google-github-actions/setup-gcloud@v2
- name: build, test, and publish jar
run: ./gradlew ${GRADLE_SWITCHES} ${GRGIT_AUTH_SWITCHES} -Prelease.scope=${{ inputs.release_scope }} final
13 changes: 7 additions & 6 deletions .github/workflows/publish-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,23 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/[email protected]
show-progress: false
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: google-github-actions/auth@v1
- uses: google-github-actions/auth@v2
if: inputs.setup_google_cloud_auth
with:
credentials_json: ${{ secrets.GCR_KEY }}
- uses: google-github-actions/setup-gcloud@v1.1.1
- uses: google-github-actions/setup-gcloud@v2
if: inputs.setup_google_cloud_auth
- name: publish-candidate
if: contains(github.ref, '-rc.')
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3
with:
arguments: |
${{ env.GRADLE_SWITCHES }}
Expand All @@ -89,7 +90,7 @@ jobs:

- name: publish-release
if: (!contains(github.ref, '-rc.'))
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3
with:
arguments: |
${{ env.GRADLE_SWITCHES }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/repository-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ jobs:
repository-backup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- uses: peter-evans/s3-backup@v1
env:
ACCESS_KEY_ID: ${{ secrets.bucket_access_key_id }}
Expand Down