Skip to content

Commit

Permalink
test(schedule): Run test if scheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed Dec 7, 2023
1 parent 190476f commit 1172607
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/unit-and-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ jobs:
- name: Prepare PHP UNIT tests
if: |
github.event.inputs.unit_tests == 'true' ||
github.event_name == 'push'
github.event_name == 'push' ||
github.event_name == 'schedule'
run: |
ddev maxmind-download DEFAULT GeoLite2-City /var/www/html/${{env.EXTENSION_PATH}}/tests/geolocation
ddev maxmind-download DEFAULT GeoLite2-Country /var/www/html/${{env.EXTENSION_PATH}}/tests/geolocation
Expand All @@ -104,19 +105,22 @@ jobs:
- name: Run Unit tests
if: |
github.event.inputs.unit_tests == 'true' ||
github.event_name == 'push'
github.event_name == 'push' ||
github.event_name == 'schedule'
run: ddev php ./${{env.EXTENSION_PATH}}/vendor/bin/phpunit --debug ./${{env.EXTENSION_PATH}}/tests/Unit --testdox

- name: Prepare integration tests
if: |
github.event.inputs.integration_tests == 'true' ||
github.event_name == 'push'
github.event_name == 'push' ||
github.event_name == 'schedule'
run: |
echo -n "{\"machine_id\":\"${{ secrets.TEST_MACHINE_ID }}\"}" > ${{env.EXTENSION_PATH}}/tests/Integration/dev-machine-id.json
echo -n "{\"password\":\"${{ secrets.TEST_MACHINE_PWD }}\"}" > ${{env.EXTENSION_PATH}}/tests/Integration/dev-password.json
- name: Run Integration tests
if: |
github.event.inputs.integration_tests == 'true' ||
github.event_name == 'push'
github.event_name == 'push' ||
github.event_name == 'schedule'
run: ddev php ./${{env.EXTENSION_PATH}}/vendor/bin/phpunit ./${{env.EXTENSION_PATH}}/tests/Integration --testdox
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The [public API](https://semver.org/spec/v2.0.0.html#spec-item-1) of this libra

---

## [3.3.0](https://github.com/crowdsecurity/php-remediation-engine/releases/tag/v3.3.0) - 2023-12-07
## [3.3.0](https://github.com/crowdsecurity/php-remediation-engine/releases/tag/v3.3.0) - 202?-??-??
[_Compare with previous release_](https://github.com/crowdsecurity/php-remediation-engine/compare/v3.2.0...v3.3.0)

### Changed
Expand Down

0 comments on commit 1172607

Please sign in to comment.