diff --git a/.github/workflows/testing-farm.yml b/.github/workflows/testing-farm.yml new file mode 100644 index 0000000000..2d672e8fc9 --- /dev/null +++ b/.github/workflows/testing-farm.yml @@ -0,0 +1,28 @@ +name: Schedule test on Testing Farm +on: + push: + branches: + - "main" + pull_request: {} + +# The concurrency key is used to prevent multiple workflows from running at the same time +concurrency: + group: my-concurrency-group + cancel-in-progress: true + +jobs: + tests: + runs-on: ubuntu-latest + # Let's schedule tests only on user request. NOT automatically. + # Only repository owner or member can schedule tests + #if: | + # github.event.issue.pull_request + # && contains(github.event.comment.body, '[test]') + # && contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association) + steps: + - name: Schedule test on Testing Farm + uses: sclorg/testing-farm-as-github-action@v2 + with: + api_key: ${{ secrets.TF_API_KEY }} + #tmt_plan_regex: "centos" + #tmt_path: "." diff --git a/.github/workflows/tf-test.fmf b/.github/workflows/tf-test.fmf new file mode 100644 index 0000000000..a0ea4896f6 --- /dev/null +++ b/.github/workflows/tf-test.fmf @@ -0,0 +1,16 @@ +summary: Basic smoke test + +description: | + The plan for testing skipping of empty plans. + +provision: + how: container + image: fedora:latest + +execute: + how: tmt + script: | + set +x + echo "Set 11*11 to testfile" + echo $((11*11)) > testfile + cat testfile \ No newline at end of file