Skip to content

tests: add integration test for pull_request_target #135

tests: add integration test for pull_request_target

tests: add integration test for pull_request_target #135

Workflow file for this run

on:
issue_comment:
types:
- created
jobs:
container-tests:
runs-on: ubuntu-22.04
name: "Secrets test for testing farm as a github action"
if: |
github.event.issue.pull_request
&& contains(github.event.comment.body, '[test]')
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: "refs/pull/${{ github.event.issue.number }}/head"
- name: Run the tests
uses: ./
with:
api_key: ${{ secrets.TF_PUBLIC_API_KEY }}
git_url: "https://github.com/sclorg/testing-farm-as-github-action"
git_ref: "main"
tmt_plan_regex: "secrets_plan"
pull_request_status_name: "Secrets test"
secrets: "SOME_DUMMY_SECRET=FOO_BAR_SECRET;OS_SECRET=DUMMY_SECRET_OS"