From 5e63e7aef083769958fc026fe8eea0241c0eb444 Mon Sep 17 00:00:00 2001 From: "K.B.Dharun Krishna" Date: Thu, 1 Feb 2024 16:14:01 +0530 Subject: [PATCH] CI: bump actions/checkout to v4, node to 20.x (#7) * CI: bump actions/checkout to v4, node to 20.x Signed-off-by: K.B.Dharun Krishna * chore(ci): update workflows Signed-off-by: K.B.Dharun Krishna * cleanup: fix eol in check-dist.yml Signed-off-by: K.B.Dharun Krishna --------- Signed-off-by: K.B.Dharun Krishna --- .github/workflows/basic-validation.yml | 6 +++--- .github/workflows/check-dist.yml | 10 +++++----- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/licensed.yml | 2 +- .github/workflows/update-config-files.yml | 8 ++++---- README.md | 1 - 6 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/basic-validation.yml b/.github/workflows/basic-validation.yml index c58d612..dd45f76 100644 --- a/.github/workflows/basic-validation.yml +++ b/.github/workflows/basic-validation.yml @@ -24,7 +24,7 @@ on: description: "Optional input to set the version of Node.js used to build the project. The input syntax corresponds to the setup-node's one" required: false type: string - default: "16.x" + default: "20.x" node-caching: description: "Optional input to set up caching for the setup-node action. The input syntax corresponds to the setup-node's one. Set to an empty string if caching isn't needed" required: false @@ -40,10 +40,10 @@ jobs: operating-systems: ${{fromJson(inputs.operating-systems)}} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js ${{inputs.node-version}} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{inputs.node-version}} cache: ${{inputs.node-caching}} diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index c54d6ea..27221af 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -16,7 +16,7 @@ on: description: "Optional input to set the version of Node.js used to build a project. The input syntax corresponds to the setup-node's one" required: false type: string - default: "16.x" + default: "20.x" node-caching: description: "Optional input to set up caching for the setup-node action. The input syntax corresponds to the setup-node's one. Set to an empty string if caching isn't needed" required: false @@ -29,10 +29,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js ${{inputs.node-version}} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{inputs.node-version}} cache: ${{inputs.node-caching}} @@ -55,7 +55,7 @@ jobs: # If inners of the dist directory were different than expected, upload the expected version as an artifact - name: Upload artifact if: ${{failure() && steps.diff.conclusion == 'failure'}} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: dist - path: ${{inputs.dist-path}} \ No newline at end of file + path: ${{inputs.dist-path}} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 923dadb..923512c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -37,7 +37,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/licensed.yml b/.github/workflows/licensed.yml index 6f182d4..887a741 100644 --- a/.github/workflows/licensed.yml +++ b/.github/workflows/licensed.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install dependencies run: npm ci --ignore-scripts diff --git a/.github/workflows/update-config-files.yml b/.github/workflows/update-config-files.yml index 16101ac..2feb324 100644 --- a/.github/workflows/update-config-files.yml +++ b/.github/workflows/update-config-files.yml @@ -32,13 +32,13 @@ jobs: runs-on: "ubuntu-latest" steps: - name: Checkout ${{github.repository}} repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: "${{inputs.base-pr-branch}}" path: "target" - name: Checkout actions/reusable-workflows repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: "actions/reusable-workflows" ref: "main" @@ -84,9 +84,9 @@ jobs: - name: Install Node.js if: ${{ steps.successful-update.outputs.STATUS == 'true' }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: Install dependencies if: ${{ steps.successful-update.outputs.STATUS == 'true' }} diff --git a/README.md b/README.md index 9e724d2..a3449f5 100644 --- a/README.md +++ b/README.md @@ -90,4 +90,3 @@ See [CODEOWNERS](./CODEOWNERS). ## Support See [SUPPORT.md](./SUPPORT.md). -