Skip to content

Commit

Permalink
ci: self_hosted test
Browse files Browse the repository at this point in the history
  • Loading branch information
bgachenot committed Dec 18, 2024
1 parent 27f4cb1 commit 1de08d7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pull-request-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,28 @@ jobs:
target-python-version: 3.8
testing-type: integration
test-deps: community.general

integration_self_hosted:
# Require reviewers for this environment
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
environment: integration_self_hosted

runs-on: ubuntu-latest

steps:
- name: Perform testing self-hosted
uses: ansible-community/ansible-test-gh-action@release/v1
with:
# ansible-core-version:
git-checkout-ref: ${{ github.event.pull_request.head.sha }} # Check out the pull request
pre-test-cmd: >- # Configure integration test run
MANAGEMENT_API_TOKEN=${{ secrets.MANAGEMENT_API_TOKEN }}
MANAGEMENT_API_BASE_URL=${{ secrets.MANAGEMENT_API_BASE_URL }}
PING_API_BASE_URL=${{ secrets.PING_API_BASE_URL }}
./tests/utils/render.sh
tests/integration/integration_config.yml.template
> tests/integration/integration_config.yml
python-version: 3.9
target-python-version: 3.8
testing-type: integration
test-deps: community.general

0 comments on commit 1de08d7

Please sign in to comment.