Skip to content

Commit

Permalink
Add testing farm github action
Browse files Browse the repository at this point in the history
  • Loading branch information
majamassarini committed Jul 1, 2024
1 parent b77b10c commit 88d08b0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/tf-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Schedule test on Testing Farm
on:
pull_request:
# on:
# issue_comment:
# types:
# - created

# 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
# 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 }}
git_url: "https://github.com/packit/deployment"
git_ref: "tf-openshift-tests"
tmt_plan_regex: "deployment"
tmt_hardware: "memory=16GB"
pull_request_status_name: "Deployment"
create_issue_comment: true
timeout: 3600
secrets: CRC_PULL_SECRET=${{ secrets.CRC_PULL_SECRET }}
2 changes: 1 addition & 1 deletion playbooks/oc-cluster-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
become_user: tmt
gather_facts: False
vars:
pull_secret: "!!!TAKEN FROM ANSIBLE ENV!!!"
pull_secret: "{{ pull_secret }} if ( pull_secret ) else {{ lookup('env', 'CRC_PULL_SECRET') }}"
dest_pull_secret_file: /tmp/openshift-local-pull-secret.txt
crc_path: /home/tmt/.local/bin
tasks:
Expand Down

0 comments on commit 88d08b0

Please sign in to comment.