Bump common from 7e222b8
to 250ae7c
#114
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]') || 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: | | |
sha=$(git rev-parse HEAD) | |
sudo apt update && sudo apt -y install python3-pip | |
pip3 install distgen | |
result="success" | |
./common/tests/check_distgen_generated_files.sh || result="failure" | |
echo "result=$result" >> "$GITHUB_OUTPUT" | |
echo "sha=$sha" >> "$GITHUB_OUTPUT" | |
- name: Set final commit status | |
uses: myrotvorets/[email protected] | |
with: | |
status: ${{ steps.check.outputs.result }} | |
context: "Distgen check" | |
sha: ${{ steps.check.outputs.sha }} | |
- name: Exit on ERR | |
shell: bash | |
run: | | |
_result=${{ steps.check.outputs.result }} | |
if [ "$_result" == failure ]; then | |
echo "::error::Distgen-generated files are not regenerated properly." | |
echo "::warning::Please regenerate them with:" | |
echo "::warning::'make clean-versions'" | |
echo "::warning::'make generate-all'" | |
exit 1 | |
fi | |
container-tests: | |
needs: distgen-check | |
runs-on: ubuntu-20.04 | |
name: "Container tests: ${{ matrix.version }} - ${{ matrix.os_test }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [ "6", "7" ] | |
os_test: [ "fedora", "rhel7", "rhel8", "rhel9", "c9s", "c8s"] | |
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 }} |