Skip to content

Commit

Permalink
Merge pull request #251 from zowe/update-workflows
Browse files Browse the repository at this point in the history
Update workflows to Node 20 workflows
  • Loading branch information
traeok authored Feb 5, 2024
2 parents ae36ce4 + e261e82 commit 01579ac
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 38 deletions.
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/manifest_updateVersions.createPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
token: ${{ secrets.ZOWE_ROBOT_TOKEN }}

- name: Set up Node.js
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 @@ -11,7 +11,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
# General rules applied to both, issues and pull requests (PRs)
start-date: "2022-07-30T00:00:00Z"
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/zowe-cli-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ 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/*'
cache: 'npm'

# Python 3.12 breaks node-gyp < 10, breaking current versions of Node 18/20 (as of Nov 9, 2023) - awharn
- name: Downgrade Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11.5'

Expand All @@ -73,7 +73,7 @@ jobs:
GIT_BRANCH: ${{ github.head_ref || github.ref_name }}

- name: Setup JFrog CLI
uses: jfrog/setup-jfrog-cli@v3
uses: jfrog/setup-jfrog-cli@v4
env:
JF_ENV_1: ${{ secrets.JF_ARTIFACTORY_TOKEN }}

Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
run: TZ=UTC find . -maxdepth 1 -name "*.zip" -type f -exec touch -t 197001010000.00 {} +

- name: Archive Build Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: 'zowe-cli-bundle_${{ inputs.package-tag }}'
path: '*.zip'
Expand Down Expand Up @@ -201,23 +201,23 @@ jobs:

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

- name: Download Bundle Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: 'zowe-cli-bundle_${{ inputs.package-tag }}'
path: 'zowe-cli-bundle'

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

# Python 3.12 breaks node-gyp < 10, breaking current versions of Node 18/20 (as of Nov 9, 2023) - awharn
- name: Downgrade Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11.5'

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/zowe-cli-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest

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

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
Expand All @@ -25,7 +25,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: 'coverage-report'
path: 'coverage-report.csv'
30 changes: 15 additions & 15 deletions .github/workflows/zowe-cli-deploy-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,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/*'
cache: ${{ (!env.ACT && 'npm') || '' }}
Expand All @@ -50,10 +50,10 @@ jobs:
RUN_OS: windows-latest
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

- name: Install Dependencies
run: npm ci
Expand Down Expand Up @@ -89,10 +89,10 @@ jobs:
RUN_OS: ubuntu-latest
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

- name: Install Dependencies
run: npm ci
Expand Down Expand Up @@ -128,16 +128,16 @@ jobs:
RUN_OS: macos-12
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

- name: Install Dependencies
run: npm ci

- name: Downgrade Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11.5'

Expand Down Expand Up @@ -172,10 +172,10 @@ jobs:
RUN_OS: macos-14
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

- name: Install Dependencies
run: npm ci
Expand Down Expand Up @@ -206,10 +206,10 @@ jobs:
if: ${{ (github.event.schedule || inputs.skip-smoke-tests != true) && (always()) }}
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

- name: Install Dependencies
run: npm ci
Expand Down Expand Up @@ -257,10 +257,10 @@ jobs:
echo "PKG_TAGS=${PKG_TAGS}" >> $GITHUB_ENV
- 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/*'
cache: ${{ (!env.ACT && 'npm') || '' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/zowe-cli-deploy-component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'zowe/zowe-cli-standalone-package'

- name: Use Node.js LTS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: ${{ (!env.ACT && 'npm') || '' }}

# Python 3.12 breaks node-gyp < 10, breaking current versions of Node 18/20 (as of Nov 9, 2023) - awharn
- name: Downgrade Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11.5'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/zowe-versions_updateVersions_createPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:

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

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

Expand Down

0 comments on commit 01579ac

Please sign in to comment.