Skip to content

ci(sdk tests): Add remediation engine tests #9

ci(sdk tests): Add remediation engine tests

ci(sdk tests): Add remediation engine tests #9

name: SDK chain tests
on:
push:
branches:
- main
paths-ignore:
- "**.md"
permissions:
contents: read
env:
# Allow ddev get to use a GitHub token to prevent rate limiting by tests
DDEV_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
test-standalone-bouncer:
name: Run Standalone Bouncer tests
if: ${{ !contains(github.event.head_commit.message, 'chore(') }}
uses: crowdsecurity/cs-standalone-php-bouncer/.github/workflows/php-sdk-development-tests.yml@736a2971d93dc6a7e9dc3a73051986b8f7e0b41a
with:
php_common_json: '["${{ github.ref_name }}"]'
lapi_client_json: '["main"]'
remediation_engine_json: '["main"]'
bouncer_lib_json: '["main"]'
test-bouncer-lib:
name: Run Bouncer lib tests
if: ${{ !contains(github.event.head_commit.message, 'chore(') }}
uses: crowdsecurity/php-cs-bouncer/.github/workflows/php-sdk-development-tests.yml@95e5f6b50b517215898356b548a0c15d2d79bed0
with:
php_common_json: '["${{ github.ref_name }}"]'
lapi_client_json: '["main"]'
remediation_engine_json: '["main"]'
test-remediation-engine:
name: Run Remediation Engine tests
if: ${{ !contains(github.event.head_commit.message, 'chore(') }}
uses: crowdsecurity/php-remediation-engine/.github/workflows/php-sdk-development-tests.yml@7b87317cfc5ec3aac6df5e0074ec29665f4811bd
with:
php_common_json: '["${{ github.ref_name }}"]'
lapi_client_json: '["main"]'
secrets:
TEST_MACHINE_ID: ${{ secrets.REMEDIATION_MACHINE_ID }}
TEST_MACHINE_PWD: ${{ secrets.REMEDIATION_MACHINE_PWD }}