|
4 | 4 | - created |
5 | 5 | jobs: |
6 | 6 | distgen-check: |
7 | | - name: "Check distgen generated files" |
8 | | - runs-on: ubuntu-latest |
9 | | - concurrency: |
10 | | - group: container-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }} |
11 | | - cancel-in-progress: true |
12 | | - if: | |
13 | | - github.event.issue.pull_request |
14 | | - && (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]')) |
15 | | - && contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association) |
16 | | - steps: |
17 | | - - name: Checkout repo |
18 | | - uses: actions/checkout@v5 |
19 | | - with: |
20 | | - ref: "refs/pull/${{ github.event.issue.number }}/head" |
21 | | - submodules: true |
22 | | - |
23 | | - - name: Check distgen generated files |
24 | | - id: check |
25 | | - shell: bash |
26 | | - run: | |
27 | | - sha=$(git rev-parse HEAD) |
28 | | - sudo apt update && sudo apt -y install python3-pip |
29 | | - pip3 install distgen |
30 | | - result="success" |
31 | | - ./common/tests/check_distgen_generated_files.sh || result="failure" |
32 | | - echo "result=$result" >> "$GITHUB_OUTPUT" |
33 | | - echo "sha=$sha" >> "$GITHUB_OUTPUT" |
34 | | -
|
35 | | - - name: Set final commit status |
36 | | - uses: myrotvorets/[email protected] |
37 | | - with: |
38 | | - status: ${{ steps.check.outputs.result }} |
39 | | - context: "Distgen check" |
40 | | - sha: ${{ steps.check.outputs.sha }} |
41 | | - |
42 | | - - name: Exit on ERR |
43 | | - shell: bash |
44 | | - run: | |
45 | | - _result=${{ steps.check.outputs.result }} |
46 | | - if [ "$_result" == failure ]; then |
47 | | - echo "::error::Distgen-generated files are not regenerated properly." |
48 | | - echo "::warning::Please regenerate them with:" |
49 | | - echo "::warning::'make clean-versions'" |
50 | | - echo "::warning::'make generate-all'" |
51 | | - exit 1 |
52 | | - fi |
| 7 | + uses: "sclorg/ci-actions/.github/workflows/distgen-check.yml@main" |
| 8 | + check-readme: |
| 9 | + uses: "sclorg/ci-actions/.github/workflows/check-readme.yml@main" |
53 | 10 | container-tests: |
54 | | - needs: distgen-check |
55 | | - runs-on: ubuntu-latest |
56 | | - name: "Container tests: ${{ matrix.version }} - ${{ matrix.os_test }}" |
57 | | - strategy: |
58 | | - fail-fast: false |
59 | | - matrix: |
60 | | - version: [ "11", "12", "13", "14", "15", "16" ] |
61 | | - os_test: [ "fedora", "rhel8", "rhel9", "rhel10", "c9s", "c10s" ] |
62 | | - test_case: [ "container" ] |
63 | | - |
64 | | - if: | |
65 | | - github.event.issue.pull_request |
66 | | - && (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]')) |
67 | | - && contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association) |
68 | | - steps: |
69 | | - - uses: sclorg/tfaga-wrapper@main |
70 | | - with: |
71 | | - os_test: ${{ matrix.os_test }} |
72 | | - version: ${{ matrix.version }} |
73 | | - test_case: ${{ matrix.test_case }} |
74 | | - public_api_key: ${{ secrets.TF_PUBLIC_API_KEY }} |
75 | | - private_api_key: ${{ secrets.TF_INTERNAL_API_KEY }} |
| 11 | + needs: check-readme |
| 12 | + uses: "sclorg/ci-actions/.github/workflows/container-tests.yml@main" |
| 13 | + with: |
| 14 | + enabled-tests: '["container","openshift-4","openshift-pytest"]' |
| 15 | + versions: '[ "12", "13", "15", "16" ]' |
| 16 | + openshift-versions: '[ "12", "13", "15", "16" ]' |
| 17 | + secrets: inherit |
0 commit comments