Skip to content

Add imagestream 16 for RHEL9 #495

Add imagestream 16 for RHEL9

Add imagestream 16 for RHEL9 #495

on:
issue_comment:
types:
- created
jobs:
distgen-check:
name: "Check distgen generated files"
runs-on: ubuntu-20.04
concurrency:
group: container-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }}
cancel-in-progress: true
if: |
github.event.issue.pull_request
&& (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]'))
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: "refs/pull/${{ github.event.issue.number }}/head"
submodules: true
- name: Check distgen generated files
id: check
shell: bash
run: |
sha=$(git rev-parse HEAD)
sudo apt update && sudo apt -y install python3-pip
pip3 install distgen
result="success"
./common/tests/check_distgen_generated_files.sh || result="failure"
echo "result=$result" >> "$GITHUB_OUTPUT"
echo "sha=$sha" >> "$GITHUB_OUTPUT"
- name: Set final commit status
uses: myrotvorets/set-commit-status-action@v2.0.0
with:
status: ${{ steps.check.outputs.result }}
context: "Distgen check"
sha: ${{ steps.check.outputs.sha }}
- name: Exit on ERR
shell: bash
run: |
_result=${{ steps.check.outputs.result }}
if [ "$_result" == failure ]; then
echo "::error::Distgen-generated files are not regenerated properly."
echo "::warning::Please regenerate them with:"
echo "::warning::'make clean-versions'"
echo "::warning::'make generate-all'"
exit 1
fi
container-tests:
needs: distgen-check
runs-on: ubuntu-20.04
name: "Container tests: ${{ matrix.version }} - ${{ matrix.os_test }}"
strategy:
fail-fast: false
matrix:
version: [ "10", "11", "12", "13", "14", "15", "16" ]
os_test: [ "fedora", "rhel7", "rhel8", "rhel9", "c9s", "c8s"]
test_case: [ "container" ]
if: |
github.event.issue.pull_request
&& (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]'))
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
steps:
- uses: sclorg/tfaga-wrapper@main
with:
os_test: ${{ matrix.os_test }}
version: ${{ matrix.version }}
test_case: ${{ matrix.test_case }}
public_api_key: ${{ secrets.TF_PUBLIC_API_KEY }}
private_api_key: ${{ secrets.TF_INTERNAL_API_KEY }}