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 <kbdharunkrishna@gmail.com> * chore(ci): update workflows Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * cleanup: fix eol in check-dist.yml Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> --------- Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
f29e256d8e
commit
5e63e7aef0
6
.github/workflows/basic-validation.yml
vendored
6
.github/workflows/basic-validation.yml
vendored
@ -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"
|
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
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: "16.x"
|
default: "20.x"
|
||||||
node-caching:
|
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"
|
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
|
required: false
|
||||||
@ -40,10 +40,10 @@ jobs:
|
|||||||
operating-systems: ${{fromJson(inputs.operating-systems)}}
|
operating-systems: ${{fromJson(inputs.operating-systems)}}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js ${{inputs.node-version}}
|
- name: Setup Node.js ${{inputs.node-version}}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{inputs.node-version}}
|
node-version: ${{inputs.node-version}}
|
||||||
cache: ${{inputs.node-caching}}
|
cache: ${{inputs.node-caching}}
|
||||||
|
|||||||
8
.github/workflows/check-dist.yml
vendored
8
.github/workflows/check-dist.yml
vendored
@ -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"
|
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
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: "16.x"
|
default: "20.x"
|
||||||
node-caching:
|
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"
|
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
|
required: false
|
||||||
@ -29,10 +29,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js ${{inputs.node-version}}
|
- name: Setup Node.js ${{inputs.node-version}}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{inputs.node-version}}
|
node-version: ${{inputs.node-version}}
|
||||||
cache: ${{inputs.node-caching}}
|
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
|
# If inners of the dist directory were different than expected, upload the expected version as an artifact
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
if: ${{failure() && steps.diff.conclusion == 'failure'}}
|
if: ${{failure() && steps.diff.conclusion == 'failure'}}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dist
|
name: dist
|
||||||
path: ${{inputs.dist-path}}
|
path: ${{inputs.dist-path}}
|
||||||
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
@ -37,7 +37,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
|||||||
2
.github/workflows/licensed.yml
vendored
2
.github/workflows/licensed.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci --ignore-scripts
|
run: npm ci --ignore-scripts
|
||||||
|
|||||||
8
.github/workflows/update-config-files.yml
vendored
8
.github/workflows/update-config-files.yml
vendored
@ -32,13 +32,13 @@ jobs:
|
|||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout ${{github.repository}} repository
|
- name: Checkout ${{github.repository}} repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: "${{inputs.base-pr-branch}}"
|
ref: "${{inputs.base-pr-branch}}"
|
||||||
path: "target"
|
path: "target"
|
||||||
|
|
||||||
- name: Checkout actions/reusable-workflows repository
|
- name: Checkout actions/reusable-workflows repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: "actions/reusable-workflows"
|
repository: "actions/reusable-workflows"
|
||||||
ref: "main"
|
ref: "main"
|
||||||
@ -84,9 +84,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
if: ${{ steps.successful-update.outputs.STATUS == 'true' }}
|
if: ${{ steps.successful-update.outputs.STATUS == 'true' }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 20
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: ${{ steps.successful-update.outputs.STATUS == 'true' }}
|
if: ${{ steps.successful-update.outputs.STATUS == 'true' }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user