Check whether build passes. Do not reuse builds across tests. #729
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: | |
container-tests: | |
# This job only runs for '[test]' pull request comments by owner, member | |
name: "Container tests: ${{ matrix.version }} - ${{ matrix.os_test }}" | |
runs-on: ubuntu-20.04 | |
concurrency: | |
group: container-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }} | |
cancel-in-progress: true | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [ "18", "18-minimal", "20", "20-minimal", "22", "22-minimal" ] | |
os_test: [ "fedora", "rhel8", "rhel9", "c9s", "c10s" ] | |
test_case: [ "container" ] | |
if: | | |
github.event.issue.pull_request | |
&& (contains(github.event.comment.body, '[test]') || 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 }} |