Skip to content

Commit

Permalink
Add preload CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Sep 13, 2024
1 parent 79a861e commit 99725e4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/preload-check.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 99725e4

Please sign in to comment.