Skip to content

Commit

Permalink
Update GHA due to node<20 deprecation (#2311)
Browse files Browse the repository at this point in the history
* Update checkout action from v3 to v4

* Update google-github-actions/auth from v1 to v2

* Update azure/setup-helm from v3 to v4

* Update peter-evans/repository-dispatch from v2 to v3
  • Loading branch information
jotare authored Jul 15, 2024
1 parent 14a5338 commit 5ea3283
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/actions/push-img-nucliadb/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:
- name: Authenticate to Google Cloud
id: gcp-auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
workload_identity_provider: "${{ env.GCP_WORKLOAD_IDENTITY_PROVIDER }}"
service_account: "${{ env.GCP_SERVICE_ACCOUNT }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Generate a token
id: app-token
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: "Pre-checks: Rust code Format"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: rustfmt
run: cargo fmt --check

Expand All @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: rustup component add clippy
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/clippy-check@v1
Expand All @@ -42,7 +42,7 @@ jobs:
needs:
- build-virtual-env
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Restore venv
uses: actions/cache/restore@v4
Expand All @@ -61,7 +61,7 @@ jobs:
needs:
- build-virtual-env
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
with:
Expand All @@ -87,10 +87,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4
with:
version: v3.4.0

Expand All @@ -103,7 +103,7 @@ jobs:
name: Check Licenses
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check License Header
uses: apache/skywalking-eyes/header@501a28d2fb4a9b962661987e50cf0219631b32ff
env:
Expand All @@ -119,7 +119,7 @@ jobs:
needs:
- build-virtual-env
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand All @@ -138,7 +138,7 @@ jobs:
name: Build node binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Compile
run: cargo build --release --bin node_reader --bin node_writer
Expand All @@ -152,7 +152,7 @@ jobs:
name: Build virtual environment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
Expand All @@ -175,7 +175,7 @@ jobs:
- build-node-binaries
- build-virtual-env
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
- build-node-binaries
- build-virtual-env
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -254,7 +254,7 @@ jobs:
name: Node Rust tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
env:
Expand All @@ -278,7 +278,7 @@ jobs:

steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -329,7 +329,7 @@ jobs:

steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -373,7 +373,7 @@ jobs:

steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Restore binaries
uses: actions/cache/restore@v4
with:
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
owner: nuclia

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set helm package image
id: version_step
Expand All @@ -83,7 +83,7 @@ jobs:
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4
with:
version: v3.4.0

Expand All @@ -94,7 +94,7 @@ jobs:
curl --data-binary "@nucliadb_shared-${{ steps.version_step.outputs.version_number }}.tgz" ${{ secrets.HELM_CHART_URL }}/api/charts
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.app-token.outputs.token }}
repository: nuclia/nucliadb_deploy
Expand All @@ -118,7 +118,7 @@ jobs:
owner: nuclia

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Calculate short sha
id: env-vars
Expand All @@ -143,7 +143,7 @@ jobs:
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4
with:
version: v3.4.0

Expand All @@ -154,7 +154,7 @@ jobs:
curl --data-binary "@nucliadb_node-${{ steps.version_step.outputs.version_number }}.tgz" ${{ secrets.HELM_CHART_URL }}/api/charts
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.app-token.outputs.token }}
repository: nuclia/nucliadb_deploy
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
owner: nuclia

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Calculate short sha
id: env-vars
Expand All @@ -212,7 +212,7 @@ jobs:
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4
with:
version: v3.4.0

Expand All @@ -223,7 +223,7 @@ jobs:
curl --data-binary "@nucliadb_${{ matrix.component }}-${{ steps.version_step.outputs.version_number }}.tgz" ${{ secrets.HELM_CHART_URL }}/api/charts
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.app-token.outputs.token }}
repository: nuclia/nucliadb_deploy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
addons: '["dns", "rbac", "hostpath-storage", "registry", "helm", "storage"]'

- name: "Set up Helm"
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4

- name: Install PostgreSQL with Helm
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nucliadb_node_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:

runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: set up python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: get dist artifacts
uses: actions/download-artifact@v3
Expand All @@ -139,7 +139,7 @@ jobs:
if: github.event_name == 'push'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: set up python
uses: actions/setup-python@v4
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/public_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Calculate short sha
id: env-vars
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
cmd: yq -i '.appVersion = "${{ steps.version_step.outputs.version_number }}"' 'charts/nucliadb/Chart.yaml'

- name: Install Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4
with:
version: v3.4.0

Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to DockerHub
uses: docker/login-action@v2
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
owner: nuclia

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up PDM
uses: pdm-project/setup-pdm@v3
Expand All @@ -148,7 +148,7 @@ jobs:
run: pdm sync -d --clean --no-editable

- name: Setup gcloud CLI
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'

Expand All @@ -167,7 +167,7 @@ jobs:
gsutil copy /tmp/openapi/nucliadb-search.json gs://stashify-docs/api/nucliadb/v$API_VERSION/nucliadb-search/spec.json
- name: Trigger doc update
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.app-token.outputs.token }}
repository: nuclia/docs
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
private-key: ${{ secrets.PK_GHAPP_NUCLIABOT }}
owner: nuclia

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
owner: nuclia

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Calculate short sha
id: env-vars
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4
with:
version: v3.4.0

Expand All @@ -171,7 +171,7 @@ jobs:
curl --data-binary "@nucliadb-${{ steps.version_step.outputs.helm_version }}.tgz" ${{ secrets.HELM_CHART_URL }}/api/charts
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.app-token.outputs.token }}
repository: nuclia/nucliadb_deploy
Expand Down

0 comments on commit 5ea3283

Please sign in to comment.