Skip to content

Commit 9d2051f

Browse files
committed
This commit separates container tests from container upstream tests
so we are able to test both of them and see results in Pull Request window directly Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent c75abf6 commit 9d2051f

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/container-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
if: |
2121
github.event.issue.pull_request
22-
&& (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-upstream]') || contains(github.event.comment.body, '[test-all]'))
22+
&& (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]'))
2323
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
2424
steps:
2525
- uses: sclorg/tfaga-wrapper@main
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
issue_comment:
3+
types:
4+
- created
5+
jobs:
6+
container-tests:
7+
# This job only runs for '[test]' pull request comments by owner, member
8+
name: "Container Upstream Tests ${{ matrix.version }} - ${{ matrix.os_test }}"
9+
runs-on: ubuntu-20.04
10+
concurrency:
11+
group: container-upstream-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }}
12+
cancel-in-progress: true
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
version: [ "18", "18-minimal", "20", "20-minimal", "22", "22-minimal" ]
17+
os_test: [ "fedora", "rhel8", "rhel9", "rhel10", "c9s", "c10s" ]
18+
test_case: [ "container-upstream" ]
19+
20+
if: |
21+
github.event.issue.pull_request
22+
&& (contains(github.event.comment.body, '[test-upstream]') || contains(github.event.comment.body, '[test-all]'))
23+
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
24+
steps:
25+
- uses: sclorg/tfaga-wrapper@main
26+
with:
27+
os_test: ${{ matrix.os_test }}
28+
version: ${{ matrix.version }}
29+
test_case: ${{ matrix.test_case }}
30+
public_api_key: ${{ secrets.TF_PUBLIC_API_KEY }}
31+
private_api_key: ${{ secrets.TF_INTERNAL_API_KEY }}

0 commit comments

Comments
 (0)