Skip to content

Commit

Permalink
Merge pull request #2701 from zowe/awharn/update-workflows
Browse files Browse the repository at this point in the history
Actions: Update workflows to Node 20 workflows
  • Loading branch information
JillieBeanSim authored Feb 7, 2024
2 parents 77cff2e + d108ce8 commit 669b37a
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/actions/deploy-npm-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ outputs:
changelog:
description: The body of the changelog to be added to GH Releases
runs:
using: node12
using: node20
main: index.js
2 changes: 1 addition & 1 deletion .github/actions/deploy-vscode-extension/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ outputs:
changelog:
description: The body of the changelog to be added to GH Releases
runs:
using: node12
using: node20
main: index.js
4 changes: 2 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:

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

- name: Use Node.js LTS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: lts/*

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/auto-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
name: Process Label Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Process Label Action
uses: hramos/respond-to-issue-based-on-label@v2
uses: dessant/label-actions@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: '.github/label-actions.yml'
github-token: ${{ secrets.GITHUB_TOKEN }}
config-path: '.github/label-actions.yml'
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

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

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
ref: ${{ github.ref }}

- name: Use Node.js LTS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '18.x'

- name: Install Yarn and Lerna
run: npm install -g yarn lerna@6
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:

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

- name: Use Node.js LTS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: lts/*

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
any-of-issue-labels: "needs more info, pending closure"
close-issue-message: >
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/theia-zowe-explorer-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
# check out source
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# install dependencies
- run: yarn install --frozen-lockfile
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:

- name: Upload test results
if: success() || failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: theia-zowe-explorer-results
path: packages/zowe-explorer/results/
13 changes: 7 additions & 6 deletions .github/workflows/zowe-explorer-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -50,23 +50,24 @@ jobs:
NODE_OPTIONS: --max_old_space_size=4096

- name: Upload test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
with:
name: zowe-explorer-results
path: packages/zowe-explorer/results/

- name: Upload API test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
with:
name: zowe-explorer-api-results
path: packages/zowe-explorer-api/results/

- name: Upload Results to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
env_vars: OS,NODE
token: ${{ secrets.CODECOV_TOKEN }}

- name: Package VSIX
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
Expand All @@ -75,7 +76,7 @@ jobs:

- name: Archive VSIX artifact
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: zowe-explorer-vsix
path: dist/*.vsix
8 changes: 4 additions & 4 deletions .github/workflows/zowe-explorer-ftp-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -50,7 +50,7 @@ jobs:
NODE_OPTIONS: --max_old_space_size=4096

- name: Upload test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
with:
name: zowe-explorer-ftp-extension-results
Expand All @@ -70,7 +70,7 @@ jobs:

- name: Archive VSIX artifact
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: zowe-explorer-ftp-extension-vsix
path: dist/*.vsix
4 changes: 2 additions & 2 deletions .github/workflows/zowe-explorer-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down

0 comments on commit 669b37a

Please sign in to comment.