-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into add-ile-tests
- Loading branch information
Showing
24 changed files
with
279 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# IBM i password is not included in this file because setting up passwordless ssh is recommended | ||
# IBM i user | ||
USER="" | ||
|
||
# IBM i host | ||
HOST="" | ||
|
||
# Tests to run. If left empty all tests will run. Ex. TESTS=("msg/snd2file") | ||
TESTS=("") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# This workflow will test Manzan | ||
|
||
name: Test Manzan | ||
|
||
on: | ||
push: | ||
branches: [ "*" ] | ||
pull_request: | ||
branches: [ "*" ] | ||
|
||
env: | ||
remote_build_dir: /home/${{ secrets.IBMI_USER }}/testbuild/ | ||
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_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: Test Manzan | ||
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: Cleanup | ||
if: always() | ||
run: | | ||
ici \ | ||
--rcwd "${{ env.remote_build_dir }}" \ | ||
--cmd "/QOpenSys/pkgs/bin/gmake BUILDLIB=${{ env.BUILDLIB }} uninstall" \ | ||
env: | ||
IBMI_HOST: ${{ secrets.IBMI_HOST }} | ||
IBMI_USER: ${{ secrets.IBMI_USER }} | ||
IBMI_PASSWORD: ${{ secrets.IBMI_PASSWORD }} | ||
IBMI_SSH_PORT: ${{ secrets.IBMI_SSH_PORT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
|
||
// Testing tasks | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "deploy", | ||
"type": "shell", | ||
"command": "./deploy.sh", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "deployAndBuildAll", | ||
"type": "shell", | ||
"command": "./deployAndBuildAll.sh", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "deployAndBuildCamel", | ||
"type": "shell", | ||
"command": "./deployAndBuildCamel.sh", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "deployAndTest", | ||
"type": "shell", | ||
"command": "./deployAndTest.sh", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "deployBuildAllAndTest", | ||
"type": "shell", | ||
"command": "./deployBuildAllAndTest.sh", | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "deployBuildCamelAndTest", | ||
"type": "shell", | ||
"command": "./deployBuildCamelAndTest.sh", | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
BUILDLIB:=MANZAN | ||
BUILDLIB?=MANZAN | ||
|
||
.PHONY: mkdirs app.ini | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
# Deploy Manzan to IBM i | ||
|
||
source ./.env | ||
rsync --exclude camel/target --exclude out -avz -e ssh . $USER@$HOST:~/mnzntest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
# Deploy Manzan to IBM i, and build the java and ile code | ||
|
||
source ./.env | ||
./deploy.sh | ||
ssh $USER@$HOST "cd /home/$USER/mnzntest; gmake install" | tee install.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
# Deploy Manzan to IBM i, and build the java code | ||
|
||
source ./.env | ||
./deploy.sh | ||
ssh $USER@$HOST "cd /home/$USER/mnzntest; gmake camel" | tee camel.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
# Deploy Manzan to IBM i, build the java and ile code, and run the tests | ||
|
||
./deployAndBuildAll.sh | ||
./test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
# Deploy Manzan to IBM i, build the java code and run the tests | ||
|
||
./deployAndBuildCamel.sh | ||
./test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
# Deploy Manzan to IBM i, and run the tests | ||
|
||
./deploy.sh | ||
./test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.