Skip to content

Commit

Permalink
Add /test-platforms GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rvykydal committed Mar 11, 2024
1 parent f9ac6a8 commit 2ef48d3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,19 @@ jobs:
run: |
set -eux
source ./containers/runner/skip-testtypes
if [ ${{ matrix.platform }} == "daily-iso" ]; then
echo "skip_tests=skip-on-fedora" >> $GITHUB_OUTPUT
echo "disabled_tests=$SKIP_TESTTYPES_DAILY_ISO" >> $GITHUB_OUTPUT
elif [ ${{ matrix.platform }} == "rawhide" ]; then
echo "skip_tests=skip-on-fedora" >> $GITHUB_OUTPUT
echo "disabled_tests=$SKIP_TESTTYPES_RAWHIDE" >> $GITHUB_OUTPUT
elif [ ${{ matrix.platform }} == "rhel8" ]; then
echo "skip_tests=skip-on-rhel,skip-on-rhel-8" >> $GITHUB_OUTPUT
echo "disabled_tests=$SKIP_TESTTYPES_RHEL8" >> $GITHUB_OUTPUT
elif [ ${{ matrix.platform }} == "rhel9" ]; then
echo "skip_tests=skip-on-rhel,skip-on-rhel-9" >> $GITHUB_OUTPUT
echo "disabled_tests=$SKIP_TESTTYPES_RHEL9" >> $GITHUB_OUTPUT
else
echo "Platform is not supported by kickstart tests yet!"
exit 1
Expand All @@ -157,21 +162,22 @@ jobs:
run: |
set -eux
DISABLED_TESTS=
if [ -n "${{ needs.pr-info.outputs.launch_args }}" ]; then
echo "Running tests required by the comment explicitly."
LAUNCH_ARGS="${{ needs.pr-info.outputs.launch_args }}"
elif [ -n "${{steps.get_changed_tests.outputs.changed_tests }}" ]; then
echo "Running tests affected by changes."
LAUNCH_ARGS="${{ steps.get_changed_tests.outputs.changed_tests }}"
DISABLED_TESTS="${{ steps.get_platform_skiptest.outputs.disabled_tests }}"
else
echo "Running smoke tests."
LAUNCH_ARGS="--testtype smoke"
fi
source ./containers/runner/skip-testtypes
PERMIAN_QUERY=$(scripts/generate-permian-query.py \
--skip-testtypes $SKIP_TESTTYPES_ANACONDA_PR \
--skip-testtypes ${{ steps.get_platform_skiptest.outputs.skip_tests }} \
--skip-testtypes $SKIP_TESTTYPES_ANACONDA_PR $DISABLED_TESTS ${{ steps.get_platform_skiptest.outputs.skip_tests }} \
${LAUNCH_ARGS} )
if [ $? == 0 ]; then
echo "launch_args=$LAUNCH_ARGS" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 2ef48d3

Please sign in to comment.