Skip to content

Commit 19ade16

Browse files
committed
Add GitHub Action workflow for testing
NodeJS container by PyTest suite. Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
1 parent 557274e commit 19ade16

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
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-pytest]' pull request comments by owner, member
8+
name: "Container PyTests: ${{ matrix.version }} - ${{ matrix.os_test }}"
9+
runs-on: ubuntu-latest
10+
concurrency:
11+
group: container-pytest-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }}
12+
cancel-in-progress: true
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
version: [ "20", "20-minimal", "22", "22-minimal", "24", "24-minimal" ]
17+
os_test: [ "fedora", "rhel8", "rhel9", "rhel10", "c9s", "c10s" ]
18+
test_case: [ "container-pytest" ]
19+
20+
if: |
21+
github.event.issue.pull_request
22+
&& (contains(github.event.comment.body, '[test-pytest]') || 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)