-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (50 loc) · 1.55 KB
/
test.yaml
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
# This workflow will test Manzan
name: Test Manzan
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
env:
remote_build_dir: /home/${{ secrets.IBMI_USER }}/testbuild/
build_lib: MANZANTESTBLD
dist_lib: MANZANTEST
IBMI_HOST: ${{ secrets.IBMI_HOST }}
IBMI_USER: ${{ secrets.IBMI_USER }}
IBMI_PASSWORD: ${{ secrets.IBMI_PASSWORD }}
IBMI_SSH_PORT: ${{ secrets.IBMI_SSH_PORT }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
always-auth: true
- name: Install NPM Dependencies
run: npm i -g @ibm/ibmi-ci
- name: Install Manzan
working-directory: test
run: |
ici \
--rcwd "${{ env.remote_build_dir }}" \
--push "." \
--cmd "/QOpenSys/pkgs/bin/gmake --jobs=1 install" \
--ignore --cl "dltlib ${{ env.build_lib }}" \
--ignore --cmd "rm -rf /QOpenSys/etc/manzan /opt/manzan"
- name: Test Manzan
working-directory: test
run: |
ici \
--rcwd "${{ env.remote_build_dir }}/test" \
--cmd "/QOpenSys/pkgs/bin/gmake --jobs=1 all" \