From 9a506b3c0462c2ed8ddc04e86c986d577db406c5 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Fri, 2 Feb 2024 14:50:20 +0000 Subject: [PATCH 1/3] Update workflows to Node 20 workflows Signed-off-by: Andrew W. Harn --- .github/actions/deploy-npm-package/action.yml | 2 +- .github/actions/deploy-vscode-extension/action.yml | 2 +- .github/workflows/audit.yml | 4 ++-- .github/workflows/auto-comment.yml | 2 +- .github/workflows/changelog.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/deployment.yml | 6 +++--- .github/workflows/lint.yml | 4 ++-- .github/workflows/stale.yml | 2 +- .github/workflows/theia-zowe-explorer-ci.yml | 4 ++-- .github/workflows/zowe-explorer-ci.yml | 12 ++++++------ .github/workflows/zowe-explorer-ftp-ci.yml | 8 ++++---- .github/workflows/zowe-explorer-samples.yml | 4 ++-- 13 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/actions/deploy-npm-package/action.yml b/.github/actions/deploy-npm-package/action.yml index 11441e8126..8a535b7e36 100644 --- a/.github/actions/deploy-npm-package/action.yml +++ b/.github/actions/deploy-npm-package/action.yml @@ -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 diff --git a/.github/actions/deploy-vscode-extension/action.yml b/.github/actions/deploy-vscode-extension/action.yml index f66cbea5c8..f4a392a49a 100644 --- a/.github/actions/deploy-vscode-extension/action.yml +++ b/.github/actions/deploy-vscode-extension/action.yml @@ -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 diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 5f7320e74e..b63632a657 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -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/* diff --git a/.github/workflows/auto-comment.yml b/.github/workflows/auto-comment.yml index f0305131d7..143a7557e2 100644 --- a/.github/workflows/auto-comment.yml +++ b/.github/workflows/auto-comment.yml @@ -9,7 +9,7 @@ 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 diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 26aef488a9..1de582838f 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d30952f840..0a7442e241 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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 diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 6ef66b00d2..c8bc6ff45a 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9fa9a04b67..ce39da6493 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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/* diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 9fcab36a71..e5a6f0a46e 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -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: > diff --git a/.github/workflows/theia-zowe-explorer-ci.yml b/.github/workflows/theia-zowe-explorer-ci.yml index d72828a776..b512c387ec 100644 --- a/.github/workflows/theia-zowe-explorer-ci.yml +++ b/.github/workflows/theia-zowe-explorer-ci.yml @@ -26,7 +26,7 @@ jobs: steps: # check out source - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # install dependencies - run: yarn install --frozen-lockfile @@ -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/ diff --git a/.github/workflows/zowe-explorer-ci.yml b/.github/workflows/zowe-explorer-ci.yml index 2fa4a1799d..dcad17bb1f 100644 --- a/.github/workflows/zowe-explorer-ci.yml +++ b/.github/workflows/zowe-explorer-ci.yml @@ -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 }} @@ -50,21 +50,21 @@ 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 @@ -75,7 +75,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 diff --git a/.github/workflows/zowe-explorer-ftp-ci.yml b/.github/workflows/zowe-explorer-ftp-ci.yml index a1125bdd73..f6ef717b02 100644 --- a/.github/workflows/zowe-explorer-ftp-ci.yml +++ b/.github/workflows/zowe-explorer-ftp-ci.yml @@ -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 }} @@ -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 @@ -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 diff --git a/.github/workflows/zowe-explorer-samples.yml b/.github/workflows/zowe-explorer-samples.yml index d18ad85f9f..d0873b372e 100644 --- a/.github/workflows/zowe-explorer-samples.yml +++ b/.github/workflows/zowe-explorer-samples.yml @@ -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 }} From 1457751935035577cb0448141b977806d1f69a52 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Fri, 2 Feb 2024 16:16:05 +0000 Subject: [PATCH 2/3] Add missing CodeCov token Signed-off-by: Andrew W. Harn --- .github/workflows/zowe-explorer-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/zowe-explorer-ci.yml b/.github/workflows/zowe-explorer-ci.yml index dcad17bb1f..eed9aabdac 100644 --- a/.github/workflows/zowe-explorer-ci.yml +++ b/.github/workflows/zowe-explorer-ci.yml @@ -67,6 +67,7 @@ jobs: 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' From d108ce8cb7e174d16649da98584258e57f72a5d1 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Fri, 2 Feb 2024 19:44:36 +0000 Subject: [PATCH 3/3] Use maintained label action Signed-off-by: Andrew W. Harn --- .github/workflows/auto-comment.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-comment.yml b/.github/workflows/auto-comment.yml index 143a7557e2..713524003b 100644 --- a/.github/workflows/auto-comment.yml +++ b/.github/workflows/auto-comment.yml @@ -12,7 +12,7 @@ jobs: - 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'