diff --git a/.github/workflows/testing-farm.yml b/.github/workflows/testing-farm.yml new file mode 100644 index 0000000000..cb742888e0 --- /dev/null +++ b/.github/workflows/testing-farm.yml @@ -0,0 +1,37 @@ +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 + +permissions: + contents: read + # This is required for the ability to create Issue comment + pull-requests: write + # This is required for the ability to create/update the Pull request status + statuses: write + +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: Check out repository code + uses: actions/checkout@v4 + - name: Schedule test on Testing Farm + uses: sclorg/testing-farm-as-github-action@v2 + with: + api_key: ${{ secrets.TF_API_KEY }} + tmt_plan_regex: "tf-test" + tmt_path: "test" diff --git a/test/tf-test.fmf b/test/tf-test.fmf new file mode 100644 index 0000000000..42561b60d0 --- /dev/null +++ b/test/tf-test.fmf @@ -0,0 +1,9 @@ +summary: Basic smoke test + +execute: + how: tmt + script: | + set +x + echo "Set 11*11 to testfile" + echo $((11*11)) > testfile + cat testfile \ No newline at end of file