Add example how to enable extension #406
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
issue_comment: | |
types: | |
- created | |
jobs: | |
distgen-check: | |
name: "Check distgen generated files" | |
runs-on: ubuntu-20.04 | |
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: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
ref: "refs/pull/${{ github.event.issue.number }}/head" | |
submodules: true | |
- name: Check distgen generated files | |
id: check | |
shell: bash | |
run: | | |
sudo apt update && sudo apt -y install python3-pip | |
pip3 install distgen | |
result="success" | |
./common/tests/check_distgen_generated_files.sh | |
openshift-tests: | |
needs: distgen-check | |
# This job only runs for '[test-all]' or '[test-openshift] pull request comments by owner, member | |
name: "${{ matrix.test_case }} tests: ${{ matrix.version }} - ${{ matrix.os_test }}" | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [ "10", "11", "12", "13", "15" ] | |
os_test: [ "rhel7", "rhel8", "rhel9"] | |
test_case: [ "openshift-3", "openshift-4" ] | |
exclude: | |
- test_case: "openshift-3" | |
os_test: "rhel8" | |
- test_case: "openshift-3" | |
os_test: "rhel9" | |
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: | |
os_test: ${{ matrix.os_test }} | |
version: ${{ matrix.version }} | |
test_case: ${{ matrix.test_case }} | |
public_api_key: ${{ secrets.TF_PUBLIC_API_KEY }} | |
private_api_key: ${{ secrets.TF_INTERNAL_API_KEY }} |