Skip to content

Bump github/codeql-action/analyze from b0c4fd77f6c559021d78430ec4d0d169ae74a4eb to dd903d2e4f5405488e5ef1422510ee31c8b32357 #7031

Bump github/codeql-action/analyze from b0c4fd77f6c559021d78430ec4d0d169ae74a4eb to dd903d2e4f5405488e5ef1422510ee31c8b32357

Bump github/codeql-action/analyze from b0c4fd77f6c559021d78430ec4d0d169ae74a4eb to dd903d2e4f5405488e5ef1422510ee31c8b32357 #7031

Workflow file for this run

name: Zowe CICS Main CI
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: [20.x, 22.x, 24.x]
os: [windows-latest, ubuntu-latest, macos-latest]
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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node-version }}
- name: Disable Lint Annotations
run: |
echo "::remove-matcher owner=eslint-compact::"
echo "::remove-matcher owner=eslint-stylish::"
- name: Install Dependencies
run: npm ci
- name: Update Dependencies
id: npm-update
uses: zowe-actions/octorelease/script@e0672bf28f74f36219713afe75915ea2dc7bf85b # v1
with:
config-dir: .github
script: npmUpdate
- 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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ matrix.os }}-${{ matrix.node-version }}-results
path: packages/*/__tests__/__results__/
- name: Upload Results to Codecov
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
with:
env_vars: OS,NODE
token: ${{ secrets.CODECOV_TOKEN }}
# - name: Bundle all packages
# if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
# run: npm i -g vsce && npm run package
# - name: Archive all packages
# if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
# uses: actions/upload-artifact@v4
# with:
# name: zowe-cics-client
# path: dist/*
e2e-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: ubuntu-22.04
steps:
- name: Change workspace folder so wiremock service can write
run: |
sudo chown -R $USER:$USER $GITHUB_WORKSPACE
sudo chmod -R 777 $GITHUB_WORKSPACE
- name: Check out repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Use Node.js 22.x
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22.x
- name: Install Dependencies
run: npm ci
- name: Run package
id: build
run: npm run package
- name: Install browsers
run: npx playwright install --with-deps
- name: Install SDK
run: |
npm install ./dist/zowe-cics-for-zowe-sdk-6.*.tgz
node scripts/sdk-test.js
- name: Install CLI
run: |
npm install -g @zowe/cli@zowe-v3-lts
zowe --version
zowe plugins list
zowe plugins install ./dist/zowe-cics-for-zowe-cli-6.*.tgz
zowe plugins list
zowe cics --help
- name: E2E Tests
if: ${{ always() && steps.build.outcome == 'success' }}
run: |
cd packages/vsce/
npm run test:e2e:setup
CI=true npx playwright test -c __tests__/__e2e__/playwright.config.ts --workers=1
- name: Save wiremock logs
if: success() || failure()
run: docker logs wiremock >& wiremock.log
- name: Archive E2E screenshots, Wiremock log, and Playwright test report
if: success() || failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: e2eLogs
path: |
packages/vsce/__tests__/screenshots
packages/vsce/playwright-report
wiremock.log
release:
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref_protected
needs:
- test
- e2e-test
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
persist-credentials: false
ref: ${{ github.ref }}
- name: Use Node.js LTS
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: lts/*
- name: Install Dependencies
run: npm ci
- name: Update Dependencies
uses: zowe-actions/octorelease/script@e0672bf28f74f36219713afe75915ea2dc7bf85b # v1
env:
GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }}
GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
NPM_RESOLUTIONS: ${{ needs.test.outputs.npm-resolutions }}
with:
config-dir: .github
script: npmUpdate
- name: Update NOTICE file
run: bash scripts/updateNotices.sh
- name: Commit Notice Changes
env:
GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }}
GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
run: |
set -e
echo "Set config"
git config --global user.name $GIT_COMMITTER_NAME
git config --global user.email $GIT_COMMITTER_EMAIL
git ls-remote --heads origin $GITHUB_REF
git add packages/*/NOTICE
git diff --name-only --cached
git commit -s -m "Update Notice Files [ci skip]" || true
- name: Build Source
run: npm run build
- uses: zowe-actions/octorelease@e0672bf28f74f36219713afe75915ea2dc7bf85b # 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 }}
OVSX_PAT: ${{ secrets.VSCODE_OVSX_PUBLISHER_TOKEN }}
VSCE_PAT: ${{ secrets.VSCODE_VSCE_PUBLISHER_TOKEN }}
with:
config-dir: .github