Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Improve tft plan and workflow #213

Merged
merged 2 commits into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/tft.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Testing Farm
name: Run integration tests in Testing Farm
on:
issue_comment:
types:
Expand All @@ -14,7 +14,7 @@ concurrency:
cancel-in-progress: true
jobs:
prepare_vars:
name: Get supported platforms from meta/main.yml
name: Get info from role and PR to determine if and how to test
# Let's schedule tests only on user request. NOT automatically.
# Only repository owner or member can schedule tests
if: |
Expand Down Expand Up @@ -136,7 +136,8 @@ jobs:
description: The role does not support this platform. Skipping.
targetUrl: ""

- uses: sclorg/testing-farm-as-github-action@v2
- name: Run test in testing farm
uses: sclorg/testing-farm-as-github-action@v2
if: contains(needs.prepare_vars.outputs.supported_platforms, matrix.platform)
env:
ARTIFACTS_DIR: ${{ env.ARTIFACT_TARGET_DIR }}/${{ env.ARTIFACTS_DIR_NAME }}
Expand Down Expand Up @@ -172,5 +173,6 @@ jobs:
with:
sha: ${{ needs.prepare_vars.outputs.head_sha }}
status: ${{ job.status }}
targetUrl: ${{ env.ARTIFACTS_URL }}
context: ${{ matrix.platform }}|ansible-${{ matrix.ansible_version }}
description: Test finished
targetUrl: ${{ env.ARTIFACTS_URL }}
Loading