Skip to content

Commit

Permalink
add testing farm github action
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyLuLiu committed Jul 26, 2024
1 parent db4810b commit dc4b8b2
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/testing-farm.yml
Original file line number Diff line number Diff line change
@@ -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: "."
16 changes: 16 additions & 0 deletions .github/workflows/tf-test.fmf
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dc4b8b2

Please sign in to comment.