Test fork #20
This file contains hidden or 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
name: Run tests on Testing Farm | |
on: | |
push: | |
branches: [ master ] | |
pull_request_target: | |
types: [opened, synchronize, reopened] | |
jobs: | |
test-init: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
statuses: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Test init on Fedora VM | |
uses: sclorg/testing-farm-as-github-action@main | |
with: | |
api_key: ${{ secrets.TESTING_FARM_API_TOKEN }} | |
compose: Fedora-Rawhide | |
tmt_path: "tmt" | |
tmt_plan_regex: "fedora-init" | |
pull_request_status_name: "Fedora init test" | |
update_pull_request_status: "true" | |
create_github_summary: "true" | |
test-upgrade: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
statuses: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Test upgrade on Fedora VM | |
uses: sclorg/testing-farm-as-github-action@main | |
with: | |
api_key: ${{ secrets.TESTING_FARM_API_TOKEN }} | |
compose: Fedora-Rawhide | |
tmt_path: "tmt" | |
tmt_plan_regex: "fedora-upgrade" | |
pull_request_status_name: "Fedora upgrade test" | |
update_pull_request_status: "true" | |
create_github_summary: "true" | |
container-test-init: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
statuses: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Test init on Fedora container | |
uses: sclorg/testing-farm-as-github-action@main | |
with: | |
api_key: ${{ secrets.TESTING_FARM_API_TOKEN }} | |
compose: null | |
tmt_path: "tmt" | |
tmt_plan_regex: "container-fedora-init" | |
pull_request_status_name: "Fedora container init test" | |
update_pull_request_status: "true" | |
create_github_summary: "true" | |
container-test-upgrade: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
statuses: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Test upgrade on Fedora container | |
run: | | |
echo "event_name=${{ github.event_name }}" | |
echo "base=${{ github.event.pull_request.base.sha }}" | |
echo "head=${{ github.event.pull_request.head.sha }}" | |
echo "ref=${{ github.ref }}" | |
echo "sha=${{ github.sha }}" | |
uses: sclorg/testing-farm-as-github-action@main | |
with: | |
api_key: ${{ secrets.TESTING_FARM_API_TOKEN }} | |
compose: null | |
tmt_path: "tmt" | |
tmt_plan_regex: "container-fedora-upgrade" | |
pull_request_status_name: "Fedora container upgrade test" | |
update_pull_request_status: "true" | |
create_github_summary: "true" | |