Website/.gitea/workflows/qs.yml

69 lines
2.2 KiB
YAML
Raw Normal View History

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"
working-directory: app
run: |
parallel --halt soon,fail=1 ::: \
"composer check-platform-reqs && composer install --no-scripts --audit" \
"npm install --no-fund"
- name: "TS Validation"
working-directory: app/frontend
run: "node ../node_modules/typescript/bin/tsc --noEmit"
- name: "Stylelint"
2024-07-20 06:38:12 +00:00
working-directory: app/frontend
run: "node ../node_modules/stylelint/bin/stylelint.mjs ."
2024-07-13 10:32:40 +00:00
- name: "ESLint"
working-directory: app
run: "node node_modules/eslint/bin/eslint.js frontend"
- name: "Twig CS Fixer"
working-directory: app
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"
working-directory: app
2024-02-04 04:48:28 +00:00
run: |
composer check-platform-reqs
composer install --no-scripts --audit
2024-07-13 10:32:40 +00:00
- name: "PHP CS Fixer"
working-directory: app
run: "vendor/bin/php-cs-fixer fix --dry-run --allow-risky=yes"
- name: "PHP Stan"
working-directory: app
run: "vendor/bin/phpstan analyze"
qs_mixed:
name: "QS Mixed"
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"
working-directory: app
run: |
parallel --halt soon,fail=1 ::: \
"composer check-platform-reqs && composer install --no-scripts --audit" \
"npm install --no-fund"
- name: "Lint"
working-directory: app
run: "node node_modules/eslint/bin/eslint.js frontend"