Skip to content

Update image path

Update image path #144

Workflow file for this run

# This workflow will test Manzan
name: Test Manzan
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
remote_home_dir: /home/${{ secrets.IBMI_USER }}/
remote_build_dir: /home/${{ secrets.IBMI_USER }}/manzan/test/${{ github.sha }}/
BUILDLIB: MZNTEST
jobs:
test:
runs-on: ubuntu-latest
environment: OSSBUILD
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
run: |
ici \
--rcwd "${{ env.remote_home_dir }}" \
--ignore --cmd "rm -rf ${{ env.remote_build_dir }}" \
--cmd "mkdir -p ${{ env.remote_build_dir }}" \
--rcwd "${{ env.remote_build_dir }}" \
--push "." \
--cmd "/QOpenSys/pkgs/bin/gmake BUILDLIB=${{ env.BUILDLIB }} install" \
env:
IBMI_HOST: ${{ secrets.IBMI_HOST }}
IBMI_USER: ${{ secrets.IBMI_USER }}
IBMI_PASSWORD: ${{ secrets.IBMI_PASSWORD }}
IBMI_SSH_PORT: ${{ secrets.IBMI_SSH_PORT }}
- name: Run E2E Tests
working-directory: test
run: |
ici \
--rcwd "${{ env.remote_build_dir }}" \
--cmd "/QOpenSys/pkgs/bin/gmake testonly;" \
env:
IBMI_HOST: ${{ secrets.IBMI_HOST }}
IBMI_USER: ${{ secrets.IBMI_USER }}
IBMI_PASSWORD: ${{ secrets.IBMI_PASSWORD }}
IBMI_SSH_PORT: ${{ secrets.IBMI_SSH_PORT }}
- name: Run ILE Tests
working-directory: scripts
run: bash ./testIle.sh
- name: Cleanup
if: always()
run: |
ici \
--rcwd "${{ env.remote_build_dir }}" \
--cmd "/QOpenSys/pkgs/bin/gmake BUILDLIB=${{ env.BUILDLIB }} uninstall" \
--rcwd "${{ env.remote_home_dir }}" \
--cmd "rm -rf ${{ env.remote_build_dir }}" \
env:
IBMI_HOST: ${{ secrets.IBMI_HOST }}
IBMI_USER: ${{ secrets.IBMI_USER }}
IBMI_PASSWORD: ${{ secrets.IBMI_PASSWORD }}
IBMI_SSH_PORT: ${{ secrets.IBMI_SSH_PORT }}