Skip to content

fix: use 'loader' in MyAdmin::renderAdmin() #77

fix: use 'loader' in MyAdmin::renderAdmin()

fix: use 'loader' in MyAdmin::renderAdmin() #77

Workflow file for this run

---
name: Polish the code
# TODO remove, as dist folder with its own composer.json causes strange behaviour
on:
push:
branches-ignore:
# notest branches to ignore testing of partial online commits
- "notest/**"
pull_request:
branches-ignore:
# notest branches to ignore testing of partial online commits
- "notest/**"
schedule:
# Run the workflow at 6:30 AM UTC on the 15th of every month
- cron: "30 6 15 * *"
# Scheduled runs do not commit-changes automatically to the same branch
permissions:
# only prettier-fix and phpcs-phpcbf need write permission, for others read is enough
contents: read
jobs:
# Note: https://docs.github.com/en/actions/using-workflows/reusing-workflows The strategy property is not supported in any job that calls a reusable workflow.
php-composer-unit-stan:
uses: WorkOfStan/seablast-actions/.github/workflows/php-composer-dependencies-reusable.yml@v0.2.9
with:
# JSON
# Ignored error pattern is different for PHPStan 1.x vs 2.x. So let's test only PHP/7.4 which uses PHPStan 2.x
# "7.2", "7.3",
php-version: '["7.4", "8.0", "8.1", "8.2", "8.3", "8.4", "8.5"]'
# OPTIONAL path with the default database configuration
#phinx-config: "./conf/phinx.dist.php"
# OPTIONAL path where the app code is looking for the database configuration
#phinxlocal-config: "./conf/phinx.local.php"
runs-on: "ubuntu-latest"
prettier-fix:
needs: php-composer-unit-stan
# Note: runs-on doesn't accept all expressions, so a string is used
runs-on: "ubuntu-latest"
permissions:
contents: write
# Limit the running time
timeout-minutes: 10
steps:
- name: Invoke the Prettier fix
uses: WorkOfStan/prettier-fix@v1
with:
commit-changes: ${{ github.event_name != 'schedule' }}
phpcs-phpcbf:
needs: prettier-fix
runs-on: "ubuntu-latest"
permissions:
contents: write
# Limit the running time
timeout-minutes: 10
steps:
- name: Invoke the PHPCS check and PHPCBF fix
uses: WorkOfStan/phpcs-fix@v1
with:
commit-changes: ${{ github.event_name != 'schedule' }}
php-version: "7.4"
stop-on-manual-fix: true
super-linter:
needs: phpcs-phpcbf
uses: WorkOfStan/seablast-actions/.github/workflows/linter.yml@v0.2.9
with:
runs-on: "ubuntu-latest"
validate-css: false