33 push :
44 paths-ignore :
55 - " **.md"
6+ pull_request :
7+ branches :
8+ - main
9+ paths-ignore :
10+ - " **.md"
611
712permissions :
813 contents : read
1419jobs :
1520 test-standalone-bouncer :
1621 name : Run Standalone Bouncer tests
17- if : ${{ !contains(github.event.head_commit.message, 'chore(') }}
18- uses : crowdsecurity/cs-standalone-php-bouncer/.github/workflows/php-sdk-development-tests.yml@22b9a34f4623d3380e970b4c7569fe4d9397f1eb
22+ uses : crowdsecurity/cs-standalone-php-bouncer/.github/workflows/php-sdk-development-tests.yml@main
1923 with :
20- php_common_json : ' ["${{ github.ref_name }}"]'
24+ php_common_json : ' ["${{ github.head_ref || github. ref_name }}"]'
2125 lapi_client_json : ' ["main"]'
2226 capi_client_json : ' ["main"]'
2327 remediation_engine_json : ' ["main"]'
2428 bouncer_lib_json : ' ["main"]'
2529
2630 test-bouncer-lib :
2731 name : Run Bouncer lib tests
28- if : ${{ !contains(github.event.head_commit.message, 'chore(') }}
29- uses : crowdsecurity/php-cs-bouncer/.github/workflows/php-sdk-development-tests.yml@c15ac30dfb66f51c0794cb02f4449056116c85bf
32+ uses : crowdsecurity/php-cs-bouncer/.github/workflows/php-sdk-development-tests.yml@main
3033 with :
31- php_common_json : ' ["${{ github.ref_name }}"]'
34+ php_common_json : ' ["${{ github.head_ref || github. ref_name }}"]'
3235 lapi_client_json : ' ["main"]'
3336 capi_client_json : ' ["main"]'
3437 remediation_engine_json : ' ["main"]'
3538
3639 test-remediation-engine :
3740 name : Run Remediation Engine tests
38- if : ${{ !contains(github.event.head_commit.message, 'chore(') }}
3941 uses : crowdsecurity/php-remediation-engine/.github/workflows/php-sdk-development-tests.yml@main
4042 with :
41- php_common_json : ' ["${{ github.ref_name }}"]'
43+ php_common_json : ' ["${{ github.head_ref || github. ref_name }}"]'
4244 lapi_client_json : ' ["main"]'
4345 capi_client_json : ' ["main"]'
4446 secrets :
@@ -47,28 +49,25 @@ jobs:
4749
4850 test-lapi-client :
4951 name : Run Lapi client tests
50- if : ${{ !contains(github.event.head_commit.message, 'chore(') }}
5152 uses : crowdsecurity/php-lapi-client/.github/workflows/php-sdk-development-tests.yml@main
5253 with :
53- php_common_json : ' ["${{ github.ref_name }}"]'
54+ php_common_json : ' ["${{ github.head_ref || github. ref_name }}"]'
5455
5556 test-capi-client :
5657 name : Run Capi client tests
57- if : ${{ !contains(github.event.head_commit.message, 'chore(') }}
5858 uses : crowdsecurity/php-capi-client/.github/workflows/php-sdk-development-tests.yml@main
5959 with :
60- php_common_json : ' ["${{ github.ref_name }}"]'
60+ php_common_json : ' ["${{ github.head_ref || github. ref_name }}"]'
6161 secrets :
6262 TEST_MACHINE_ID : ${{ secrets.TEST_MACHINE_ID }}
6363 TEST_MACHINE_PWD : ${{ secrets.TEST_MACHINE_PWD }}
6464 ENROLLMENT_KEY : ${{ secrets.TEST_ENROLLMENT_KEY }}
6565
6666 test-magento-engine :
6767 name : Run Magento 2 Engine module tests
68- if : ${{ !contains(github.event.head_commit.message, 'chore(') }}
6968 uses : crowdsecurity/magento-cs-extension/.github/workflows/php-sdk-development-tests.yml@main
7069 with :
71- php_common_json : ' ["${{ github.ref_name }}"]'
70+ php_common_json : ' ["${{ github.head_ref || github. ref_name }}"]'
7271 lapi_client_json : ' ["main"]'
7372 capi_client_json : ' ["main"]'
7473 remediation_engine_json : ' ["main"]'
0 commit comments