diff --git a/.github/workflows/preload-check.yml b/.github/workflows/preload-check.yml new file mode 100644 index 00000000..bf3c6e06 --- /dev/null +++ b/.github/workflows/preload-check.yml @@ -0,0 +1,24 @@ +name: "preload check" + +on: + pull_request: ~ + push: ~ + +jobs: + doc-check: + name: "preload check" + runs-on: "ubuntu-latest" + steps: + - name: "checkout" + uses: "actions/checkout@v4" + + - name: "installing PHP" + uses: "shivammathur/setup-php@v2" + with: + php-version: "8.3" + ini-values: memory_limit=-1 + tools: composer:v2, cs2pr + extensions: bcmath, mbstring, intl, sodium, json + + - name: "checking if preload script is valid." + run: make preload-check diff --git a/Makefile b/Makefile index 7cad2c6f..d619b7a4 100644 --- a/Makefile +++ b/Makefile @@ -46,4 +46,7 @@ docs-generate: docs-check: ## checks if docs are up to date php docs/documenter.php check -check: coding-standard-check static-analysis security-analysis unit-tests mutation-tests docs-check ## run quick checks for local development iterations +preload-check: ## checks if preloader is configured correctly + php src/preload.php + +check: coding-standard-check static-analysis security-analysis unit-tests mutation-tests docs-check autoload-check ## run quick checks for local development iterations