Skip to content

Commit

Permalink
add check imagestreams as composite action (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmiklank authored Mar 26, 2024
1 parent deab1dd commit 5e9d6c1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 60 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/check-imagestreams.yml

This file was deleted.

22 changes: 16 additions & 6 deletions .github/workflows/openshift-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,25 @@ on:
- created

jobs:
check-imagestreams:
runs-on: ubuntu-latest
permissions:
contents: read
statuses: write
if: |
github.event.issue.pull_request
&& (contains(github.event.comment.body, '[test-openshift]') || contains(github.event.comment.body, '[test-all]'))
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
steps:
- uses: sclorg/ci-scripts/ocp-stream-generator@master
with:
ref: "refs/pull/${{ github.event.issue.number }}/head"

openshift-tests:
name: "${{ matrix.test_case }} tests: ${{ matrix.version }} - ${{ matrix.os_test }}"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
concurrency:
needs: check-imagestreams
group: ocp-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }}
cancel-in-progress: true
strategy:
Expand All @@ -16,11 +31,6 @@ jobs:
version: [ "1.20", "1.22", "1.22-micro", "1.24" ]
os_test: [ "rhel7", "rhel8", "rhel9" ]
test_case: [ "openshift-4" ]

if: |
github.event.issue.pull_request
&& (contains(github.event.comment.body, '[test-openshift]') || contains(github.event.comment.body, '[test-all]'))
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
steps:
- uses: sclorg/tfaga-wrapper@main
with:
Expand Down

0 comments on commit 5e9d6c1

Please sign in to comment.