-
Notifications
You must be signed in to change notification settings - Fork 96
48 lines (38 loc) · 1.32 KB
/
zowe-explorer-samples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# install pnpm
- run: npm install -g pnpm@8
- 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