Skip to content

Commit

Permalink
CI: Update actions to run on Node16 instead of Node12
Browse files Browse the repository at this point in the history
We are encountering warnings such as:

The following actions uses node12 which is deprecated and
will be forced to run on node16: actions/checkout@v2,
actions/setup-go@v2.

More information about this warning can be found at:
https://github.blog/changelog/2023-06-13-github-actions-all-
actions-will-run-on-node16-instead-of-node12-by-default/

Changing checkout to actions/checkout@v3 or above and setup-go
to setup-go@v3 or above resolves the issue as v3 version on
both uses node16 runtime by default.
Refer:
https://github.com/actions/checkout/releases/tag/v3.0.0
https://github.com/actions/setup-go/releases/tag/v3.0.0

Hence updated checkout to v3 and setup-go to v4(to get
benifited from latest cache related change as well along
with the node 16 support:
https://github.com/marketplace/actions/setup-go-environment)

Fixes: RamenDR#987
Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
  • Loading branch information
Shwetha-Acharya authored and ShyamsundarR committed Jul 18, 2023
1 parent 5751b2a commit c126042
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install prereqs
run: |
Expand All @@ -63,10 +63,10 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

Expand All @@ -80,10 +80,10 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

Expand Down Expand Up @@ -175,10 +175,10 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

Expand All @@ -189,7 +189,7 @@ jobs:
run: ${{env.DOCKERCMD}} save -o /tmp/ramen-operator.tar ${IMAGE_TAG_BASE}-operator:${IMAGE_TAG}

- name: Save image artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ramen-operator
path: /tmp/ramen-operator.tar
Expand Down Expand Up @@ -218,10 +218,10 @@ jobs:
KIND_CLUSTER_NAME: "ci"
steps:
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

Expand Down Expand Up @@ -332,10 +332,10 @@ jobs:
# TODO: We do not need to build bundles and catalogs each time, fix once we reach alpha
- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

Expand Down

0 comments on commit c126042

Please sign in to comment.