Skip to content

Commit

Permalink
Merge pull request #155 from zowe/update-deps-v1
Browse files Browse the repository at this point in the history
Update Axios Transitive Dependency [v1]
  • Loading branch information
awharn authored Aug 14, 2024
2 parents 5ca54bd + 9f4dd9f commit 4c19a53
Show file tree
Hide file tree
Showing 3 changed files with 1,127 additions and 920 deletions.
259 changes: 130 additions & 129 deletions .github/workflows/zowe-cli-plugin.yml
Original file line number Diff line number Diff line change
@@ -1,129 +1,130 @@
name: zowe-cli-plugin

on: [push, pull_request, workflow_dispatch]

jobs:
test:
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) && !contains(github.event.head_commit.message, '[ci skip]')
runs-on: ${{ matrix.os }}
outputs:
npm-resolutions: ${{ steps.npm-update.outputs.result }}

strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
os: [windows-latest, ubuntu-latest, macos-13]

env:
OS: ${{ matrix.os }}
NODE: ${{ matrix.node-version }}
NODE_OPTIONS: --max_old_space_size=4096

timeout-minutes: 60

concurrency:
group: ${{ matrix.os }}-node-${{ matrix.node-version }}-ci-${{ github.ref }}
cancel-in-progress: true

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

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

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

- name: Disable Lint Annotations
run: |
echo "::remove-matcher owner=eslint-compact::"
echo "::remove-matcher owner=eslint-stylish::"
- name: Install Dependencies
run: npm ci --quiet

- name: Update Dependencies
id: npm-update
uses: zowe-actions/octorelease/script@v1
with:
script: npmUpdate

- name: Windows only - Add clidriver to PATH
id: clidriver
if: ${{ matrix.os == 'windows-latest' }}
run: echo "$((Get-Item .).FullName)/node_modules/ibm_db/installer/clidriver/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Build Source
id: build
run: npm run build

- name: Unit Tests
if: ${{ always() && steps.build.outcome == 'success' }}
run: npm run test:unit

- name: Archive Results
if: ${{ always() && steps.build.outcome == 'success' }}
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-${{ matrix.node-version }}-results
path: __tests__/__results__/

- name: Upload Results to Codecov
if: ${{ always() && steps.build.outcome == 'success' }}
uses: codecov/codecov-action@v3
with:
env_vars: OS,NODE

release:
if: github.event_name == 'push' && github.ref_protected
needs: test
runs-on: ubuntu-latest

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

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

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

- name: Install Dependencies
run: npm ci

- name: Update Dependencies
uses: zowe-actions/octorelease/script@v1
env:
GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }}
GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
NPM_RESOLUTIONS: ${{ needs.test.outputs.npm-resolutions }}
with:
script: npmUpdate

- name: Build Source
run: npm run build

- uses: zowe-actions/octorelease@v1
env:
GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }}
GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
GIT_CREDENTIALS: x-access-token:${{ secrets.ZOWE_ROBOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
NPM_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
NPM_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
name: zowe-cli-plugin

on: [push, pull_request, workflow_dispatch]

jobs:
test:
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) && !contains(github.event.head_commit.message, '[ci skip]')
runs-on: ${{ matrix.os }}
outputs:
npm-resolutions: ${{ steps.npm-update.outputs.result }}

strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
os: [windows-latest, ubuntu-latest, macos-13]

env:
OS: ${{ matrix.os }}
NODE: ${{ matrix.node-version }}
NODE_OPTIONS: --max_old_space_size=4096

timeout-minutes: 60

concurrency:
group: ${{ matrix.os }}-node-${{ matrix.node-version }}-ci-${{ github.ref }}
cancel-in-progress: true

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

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

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

- name: Disable Lint Annotations
run: |
echo "::remove-matcher owner=eslint-compact::"
echo "::remove-matcher owner=eslint-stylish::"
- name: Install Dependencies
run: npm ci --quiet

- name: Update Dependencies
id: npm-update
uses: zowe-actions/octorelease/script@v1
with:
script: npmUpdate

- name: Windows only - Add clidriver to PATH
id: clidriver
if: ${{ matrix.os == 'windows-latest' }}
run: echo "$((Get-Item .).FullName)/node_modules/ibm_db/installer/clidriver/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Build Source
id: build
run: npm run build

- name: Unit Tests
if: ${{ always() && steps.build.outcome == 'success' }}
run: npm run test:unit

- name: Archive Results
if: ${{ always() && steps.build.outcome == 'success' }}
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-${{ matrix.node-version }}-results
path: __tests__/__results__/

- name: Upload Results to Codecov
if: ${{ always() && steps.build.outcome == 'success' }}
uses: codecov/codecov-action@v4
with:
env_vars: OS,NODE
token: ${{ secrets.CODECOV_TOKEN }}

release:
if: github.event_name == 'push' && github.ref_protected
needs: test
runs-on: ubuntu-latest

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

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

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

- name: Install Dependencies
run: npm ci

- name: Update Dependencies
uses: zowe-actions/octorelease/script@v1
env:
GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }}
GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
NPM_RESOLUTIONS: ${{ needs.test.outputs.npm-resolutions }}
with:
script: npmUpdate

- name: Build Source
run: npm run build

- uses: zowe-actions/octorelease@v1
env:
GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }}
GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
GIT_CREDENTIALS: x-access-token:${{ secrets.ZOWE_ROBOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
NPM_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
NPM_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to the IBM® Db2® Plug-in for Zowe CLI will be documented in this file.

## Recent Changes

- BugFix: Updated axios transitive dependency to resolve technical debt. [#155](https://github.com/zowe/zowe-cli-db2-plugin/pull/155)

## `4.1.14`

- BugFix: Updated axios transitive dependency to resolve technical debt. [#150](https://github.com/zowe/zowe-cli-db2-plugin/pull/150)
Expand Down
Loading

0 comments on commit 4c19a53

Please sign in to comment.