mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
name: Symfony
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
symfony-tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.3'
|
|
extensions: mbstring, xml, intl, curl, iconv, pdo_pgsql, sodium, zip, http
|
|
|
|
- name: Install backend dependencies
|
|
run: composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader
|
|
|
|
- name: Install frontend dependencies
|
|
run: yarn install
|
|
|
|
- name: Run PHP-CS-Fixer
|
|
run: vendor/bin/php-cs-fixer fix --dry-run --diff
|
|
|
|
- name: Run PHPStan
|
|
run: vendor/bin/phpstan analyse
|
|
|
|
- name: Run ESLint
|
|
run: yarn run eslint
|