Skip to content

Commit

Permalink
ci(sdk chain tests): Add Magento 2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed Nov 7, 2024
1 parent 0e1a14b commit 0070e4f
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/sdk-chain-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: SDK chain tests

on:
push:
branches:
- main
paths-ignore:
- "**.md"

Expand All @@ -29,7 +27,7 @@ jobs:
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@c2aaf185542d56c4731822e833aa4613b0143a5e
uses: crowdsecurity/php-cs-bouncer/.github/workflows/php-sdk-development-tests.yml@main
with:
php_common_json: '["main"]'
lapi_client_json: '["${{ github.ref_name }}"]'
Expand All @@ -39,11 +37,27 @@ jobs:
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@0f0f1b16ab4f6ca3ad0525e03a6d88675a9baa99
uses: crowdsecurity/php-remediation-engine/.github/workflows/php-sdk-development-tests.yml@main
with:
php_common_json: '["main"]'
lapi_client_json: '["${{ github.ref_name }}"]'
capi_client_json: '["main"]'
secrets:
TEST_MACHINE_ID: ${{ secrets.REMEDIATION_MACHINE_ID }}
TEST_MACHINE_PWD: ${{ secrets.REMEDIATION_MACHINE_PWD }}
TEST_MACHINE_ID: ${{ secrets.TEST_MACHINE_ID }}
TEST_MACHINE_PWD: ${{ secrets.TEST_MACHINE_PWD }}

test-magento-engine:
name: Run Magento 2 Engine module tests
if: ${{ !contains(github.event.head_commit.message, 'chore(') }}
uses: crowdsecurity/magento-cs-extension/.github/workflows/php-sdk-development-tests.yml@main
with:
php_common_json: '["main"]'
lapi_client_json: '["${{ github.ref_name }}"]'
capi_client_json: '["main"]'
remediation_engine_json: '["main"]'
bouncer_lib_json: '["main"]'
secrets:
MACHINE_ID: ${{ secrets.TEST_MACHINE_ID }}
MACHINE_PASSWORD: ${{ secrets.TEST_MACHINE_PWD }}
ENROLL_KEY: ${{ secrets.TEST_ENROLLMENT_KEY }}
M2_COMPOSER_AUTH: ${{ secrets.M2_AUTH }}

0 comments on commit 0070e4f

Please sign in to comment.