Website/.gitea/workflows/qs.yml
Snoweuph ee8012c4e0
All checks were successful
Quality Check / QS Backend (push) Successful in 16s
Quality Check / QS Frontend (push) Successful in 34s
NOTICKET: Refactor Project Layout
2024-07-30 05:59:42 +02:00

42 lines
1.3 KiB
YAML

name: "Quality Check"
on: push
jobs:
qs_frontend:
name: "QS Frontend"
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"
run: |
parallel --halt soon,fail=1 ::: \
"composer check-platform-reqs && composer install --no-scripts --audit" \
"npm install --no-fund"
- name: "TS Validation"
run: "node node_modules/typescript/bin/tsc --noEmit"
- name: "Stylelint"
run: "node node_modules/stylelint/bin/stylelint.mjs src"
- name: "ESLint"
run: "node node_modules/eslint/bin/eslint.js src"
- 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"
run: |
composer check-platform-reqs
composer install --no-scripts --audit
- name: "PHP CS Fixer"
run: "vendor/bin/php-cs-fixer fix --dry-run --allow-risky=yes"
- name: "PHP Stan"
run: "vendor/bin/phpstan analyze"