2024-02-04 04:48:28 +00:00
|
|
|
name: "Quality Check"
|
|
|
|
|
|
|
|
on: push
|
|
|
|
jobs:
|
2024-07-13 10:32:40 +00:00
|
|
|
qs_frontend:
|
|
|
|
name: "QS Frontend"
|
2024-02-04 04:48:28 +00:00
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
container:
|
2024-07-12 22:56:04 +00:00
|
|
|
image: "git.euph.dev/actions/runner-php-8.3:latest"
|
2024-02-04 04:48:28 +00:00
|
|
|
steps:
|
2024-02-11 08:53:15 +00:00
|
|
|
- name: "Checkout"
|
|
|
|
uses: "https://git.euph.dev/actions/checkout@v3"
|
2024-07-13 10:32:40 +00:00
|
|
|
- name: "Install Dependencies"
|
|
|
|
run: |
|
|
|
|
parallel --halt soon,fail=1 ::: \
|
|
|
|
"composer check-platform-reqs && composer install --no-scripts --audit" \
|
|
|
|
"npm install --no-fund"
|
|
|
|
- name: "TS Validation"
|
2024-07-30 03:36:45 +00:00
|
|
|
run: "node node_modules/typescript/bin/tsc --noEmit"
|
2024-07-13 10:32:40 +00:00
|
|
|
- name: "Stylelint"
|
2024-07-30 03:36:45 +00:00
|
|
|
run: "node node_modules/stylelint/bin/stylelint.mjs src"
|
2024-07-13 10:32:40 +00:00
|
|
|
- name: "ESLint"
|
2024-07-30 03:36:45 +00:00
|
|
|
run: "node node_modules/eslint/bin/eslint.js src"
|
2024-07-13 10:32:40 +00:00
|
|
|
- name: "Twig CS Fixer"
|
|
|
|
run: "vendor/bin/twig-cs-fixer lint"
|
|
|
|
|
|
|
|
qs_backend:
|
|
|
|
name: "QS Backend"
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
container:
|
|
|
|
image: "git.euph.dev/actions/runner-php-8.3:latest"
|
|
|
|
steps:
|
|
|
|
- name: "Checkout"
|
|
|
|
uses: "https://git.euph.dev/actions/checkout@v3"
|
|
|
|
- name: "Install Dependencies"
|
2024-02-04 04:48:28 +00:00
|
|
|
run: |
|
2024-03-24 14:35:50 +00:00
|
|
|
composer check-platform-reqs
|
|
|
|
composer install --no-scripts --audit
|
2024-07-13 10:32:40 +00:00
|
|
|
- name: "PHP CS Fixer"
|
|
|
|
run: "vendor/bin/php-cs-fixer fix --dry-run --allow-risky=yes"
|
|
|
|
- name: "PHP Stan"
|
|
|
|
run: "vendor/bin/phpstan analyze"
|