From 73bd816b3783fbd8286a2f08b5101824f11f5dc0 Mon Sep 17 00:00:00 2001 From: Toon Verwerft Date: Fri, 13 Sep 2024 12:24:17 +0200 Subject: [PATCH] Add preload CI check --- .github/workflows/preload-check.yml | 24 ++++++++++++++++++++++++ Makefile | 5 ++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/preload-check.yml 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