Skip to content

[9.100.x-prod] SRVLOGIC-232: Fix io.openshift.tags expectation #51

[9.100.x-prod] SRVLOGIC-232: Fix io.openshift.tags expectation

[9.100.x-prod] SRVLOGIC-232: Fix io.openshift.tags expectation #51

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@v4
- name: Install xmllint
run: |
sudo apt-get update &&\
sudo apt-get -y install --no-install-recommends --fix-missing \
libxml2-utils
- 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@v4
- 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@v4
- name: Install Shellcheck
run: |
sudo apt-get update &&\
sudo apt-get -y install --no-install-recommends \
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
shopt -s globstar nullglob
shellcheck -e SC2034 -e SC1090 -S warning modules/**/configure modules/**/*.sh