-
Notifications
You must be signed in to change notification settings - Fork 6
84 lines (72 loc) · 2.72 KB
/
test.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Test Scripts
on:
pull_request:
paths: "scripts/**"
push:
paths: "scripts/**"
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
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: Checkout
uses: actions/checkout@v4
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Setup .npmrc
id: setup-npmrc
run: npm config set @zowe:registry=https://zowe.jfrog.io/zowe/api/npm/npm-local-release/
- name: Install Node Package Dependencies
id: install-node
run: |
npm i --prod
npm install -g puppeteer-cli
- name: Set Up Zowe
id: setup-zowe
run: |
npm install -g @zowe/cli@zowe-v1-lts
zowe plugins install @zowe/cics-for-zowe-cli@zowe-v1-lts
zowe plugins install @zowe/db2-for-zowe-cli@zowe-v1-lts
zowe plugins install @zowe/ims-for-zowe-cli@zowe-v1-lts
zowe plugins install @zowe/mq-for-zowe-cli@zowe-v1-lts
zowe plugins install @zowe/secure-credential-store-for-zowe-cli@zowe-v1-lts
zowe plugins install @zowe/zos-ftp-for-zowe-cli@zowe-v1-lts
- name: Get Zowe version
id: get-version
run: |
echo "number=$(echo 'CLI_v'$(npx zowe --version))" >> $GITHUB_OUTPUT
- name: Setup zowe.json file
id: setup
run: |
jq '.commandGroups=["cics","db2","ims","mq","secure-credential-store","zos-ftp"]' zowe.template.json > zowe.json
echo "$(jq '.profiles=["cics", "db2","ims","mq","zftp"]' zowe.json)" > zowe.json
npm run contribute
- name: Teardown Zowe Plugins
id: teardown-zowe
run: |
zowe plugins uninstall @zowe/cics-for-zowe-cli
zowe plugins uninstall @zowe/db2-for-zowe-cli
zowe plugins uninstall @zowe/ims-for-zowe-cli
zowe plugins uninstall @zowe/mq-for-zowe-cli
zowe plugins uninstall @zowe/secure-credential-store-for-zowe-cli
zowe plugins uninstall @zowe/zos-ftp-for-zowe-cli
- name: Build Web Help
id: build
run: |
which zowe || true
zowe --version || true
npm run build:local -- ${{ steps.get-version.outputs.number }}
export margin="0.4in"
puppeteer print ./generatedWebHelp/docs/all.html ./zowe.pdf --margin-top $margin --margin-right $margin --margin-bottom $margin --margin-left $margin --no-sandbox
- name: Archive Results
id: upload
if: ${{ always() && steps.build.outcome == 'success' }}
uses: actions/upload-artifact@v4
with:
name: results
path: |
generatedWebHelp/
zowe.pdf