Skip to content

Commit 95206be

Browse files
authored
Add GitHub Action for testing NodeJS container by PyTest in OpenShift 4 (#436)
Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 2bb0b79 commit 95206be

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
on:
2+
issue_comment:
3+
types:
4+
- created
5+
jobs:
6+
check-imagestreams:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
statuses: write
11+
if: |
12+
github.event.issue.pull_request
13+
&& (contains(github.event.comment.body, '[test-openshift-pytest]') || contains(github.event.comment.body, '[test-all]'))
14+
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
15+
steps:
16+
- uses: sclorg/ci-scripts/ocp-stream-generator@master
17+
with:
18+
ref: "refs/pull/${{ github.event.issue.number }}/head"
19+
20+
openshift-pytests:
21+
name: "${{ matrix.test_case }} PyTests: ${{ matrix.version }} - ${{ matrix.os_test }}"
22+
runs-on: ubuntu-latest
23+
needs: check-imagestreams
24+
concurrency:
25+
group: ocp-pytest-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }}
26+
cancel-in-progress: true
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
version: [ "16", "16-minimal", "18", "18-minimal", "20", "20-minimal" ]
31+
os_test: [ "rhel8", "rhel9"]
32+
test_case: [ "openshift-pytest" ]
33+
34+
steps:
35+
- uses: sclorg/tfaga-wrapper@main
36+
with:
37+
os_test: ${{ matrix.os_test }}
38+
version: ${{ matrix.version }}
39+
test_case: ${{ matrix.test_case }}
40+
public_api_key: ${{ secrets.TF_PUBLIC_API_KEY }}
41+
private_api_key: ${{ secrets.TF_INTERNAL_API_KEY }}

0 commit comments

Comments
 (0)