Skip to content

kie-kogito-images-1735: Add the kogito-addons-quarkus-jobs-knative-eventing addon to the swf-builder images #5

kie-kogito-images-1735: Add the kogito-addons-quarkus-jobs-knative-eventing addon to the swf-builder images

kie-kogito-images-1735: Add the kogito-addons-quarkus-jobs-knative-eventing addon to the swf-builder images #5

name: Images PR check
on: pull_request
jobs:
bats_test:
concurrency:
group: ${{ github.repository.name }}_bats_test-${{ github.head_ref }}
cancel-in-progress: true
name: Bats Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install xmllint
run: |
sudo apt-get update
sudo apt-get install libxml2-utils --fix-missing
- name: Cache bats binaries
uses: actions/cache@v1
with:
path: $GITHUB_WORKSPACE/bats/
key: ${{ runner.os }}-bats-binaries
restore-keys: |
${{ runner.os }}-bats-binaries
- name: run bats
run: |
./scripts/run-bats.sh
validate_kogito_imagestream:
concurrency:
group: ${{ github.repository.name }}_validate_kogito_imagestream-${{ github.head_ref }}
cancel-in-progress: true
name: Validate Kogito imagestreams
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download openshift-validator-tool
run: |
wget https://github.com/jboss-container-images/jboss-kie-modules/raw/main/tools/openshift-template-validator/openshift-template-validator-linux-amd64
- name: Add execution permission to openshift-validator-tool
run: |
chmod +x openshift-template-validator-linux-amd64
mv openshift-template-validator-linux-amd64 ${HOME}
- name: validate kogito imagestream
run: |
${HOME}/openshift-template-validator-linux-amd64 validate -f kogito-imagestream.yaml
shellcheck:
concurrency:
group: ${{ github.repository.name }}_shellcheck-${{ github.head_ref }}
cancel-in-progress: true
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Shellcheck
run: sudo apt install shellcheck
- name: Check configure scripts
run: |
# Ignore SC2034 since we have many var which are unused in the script but can be used while deployment at runtime by setting env. For eg: ${KOGITO_QUARKUS_JVM_PROPS}
# Ignore SC1090 since the source files in our case didn't need to be checked
shellcheck -e SC2034 -e SC1090 modules/**/configure modules/**/*.sh