Skip to content

Merge pull request #2659 from zowe/remove-optional-param #549

Merge pull request #2659 from zowe/remove-optional-param

Merge pull request #2659 from zowe/remove-optional-param #549

name: Zowe Explorer Samples CI
on:
push:
paths:
- .github/workflows/zowe-explorer-samples.yml
- packages/zowe-explorer-api/**
- samples/**
pull_request:
paths:
- .github/workflows/zowe-explorer-samples.yml
- packages/zowe-explorer-api/**
- samples/**
jobs:
samples-build:
runs-on: ubuntu-latest
timeout-minutes: 30
concurrency:
group: node-${{ matrix.node-version }}-ze-samples-ci-${{ github.ref }}
cancel-in-progress: true
strategy:
# Continue to run tests on the other systems if one fails
fail-fast: false
matrix:
node-version: [18.x, 20.x]
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) && !contains(github.event.head_commit.message, '[ci skip]')
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# install pnpm
- run: npm install -g pnpm
- run: pnpm config set network-timeout 60000 && pnpm i
- run: pnpm --filter "zowe-explorer-api" build
- run: for dir in samples/*; do pushd $dir && pnpm --ignore-workspace i && pnpm run compile && popd; done
shell: bash