Bump the minor group in /frontend with 15 updates #83
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Code quality" | |
on: | |
workflow_call: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
APP_ENV: dev | |
jobs: | |
backend-code-quality: | |
name: Backend code quality checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: 'backend/' | |
sparse-checkout-cone-mode: false | |
- name: Move backend to root | |
run: | | |
shopt -s dotglob | |
mv backend/* ./ | |
rm -rf backend/ | |
- name: Packages install | |
uses: php-actions/composer@v6 | |
with: | |
args: --profile --ignore-platform-reqs | |
# - name: Run PHPCS | |
# uses: php-actions/phpcs@v1 | |
# with: | |
# path: ./src/ | |
# args: -d memory_limit=-1 | |
- name: Run PHPStan | |
uses: php-actions/phpstan@v3 | |
with: | |
php_version: 8.2 | |
# - name: Run PHPUnit | |
# uses: php-actions/phpunit@v3 | |
# with: | |
# version: 9.6 | |
# php_version: 8.2 | |
# php_extensions: "xdebug" | |
# coverage_clover: "coverage/clover.xml" | |
frontend-code-quality: | |
name: Frontend code quality checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: 'frontend/' | |
sparse-checkout-cone-mode: false | |
- name: Move frontend to root | |
run: | | |
shopt -s dotglob | |
mv frontend/* ./ | |
rm -rf frontend/ | |
ls -lah | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Packages Install | |
run: npm ci | |
- name: Run ESLint | |
run: npm run analyze |