Skip to content

chore(deps-dev): bump larastan/larastan from 2.9.12 to 3.0.2 #594

chore(deps-dev): bump larastan/larastan from 2.9.12 to 3.0.2

chore(deps-dev): bump larastan/larastan from 2.9.12 to 3.0.2 #594

Workflow file for this run

name: Code Quality Assurance
on:
pull_request:
workflow_call:
workflow_dispatch:
jobs:
detect_changes:
name: Detect Changes in Source Files
runs-on: ubuntu-latest
outputs:
php: ${{ steps.filter.outputs.php }}
js: ${{ steps.filter.outputs.js }}
ts: ${{ steps.filter.outputs.ts }}
css: ${{ steps.filter.outputs.css }}
antlers: ${{ steps.filter.outputs.antlers }}
dependencies: ${{ steps.filter.outputs.dependencies }}
changed: ${{ steps.filter.outputs.changed }}
php_files: ${{ steps.filter.outputs.php_files }}
js_files: ${{ steps.filter.outputs.js_files }}
ts_files: ${{ steps.filter.outputs.ts_files }}
css_files: ${{ steps.filter.outputs.css_files }}
antlers_files: ${{ steps.filter.outputs.antlers_files }}
changed_files: ${{ steps.filter.outputs.changed_files }}
steps:
- name: Identify Changed Files
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
php:
- added|modified: '*.php'
ts:
- added|modified: '**/*.ts'
js:
- added|modified: '**/*.js'
- added|modified: '**/*.cjs'
- added|modified: '**/*.mjs'
css:
- added|modified: '**/*.css'
antlers:
- added|modified: '**/*.antlers.html'
dependencies:
- added|modified: 'package.json'
- added|modified: 'composer.json'
- added|modified: 'package-lock.json'
- added|modified: 'composer.lock'
changed:
- added|modified: '**/*'
list-files: shell
lint_code:
name: Perform Code Linting
needs: detect_changes
if: ${{ needs.detect_changes.outputs.changed == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Setup Node.js Environment
uses: actions/setup-node@v4
with:
node-version: 20.11.0
- name: Install Node.js Dependencies
run: npm ci --prefer-offline
- name: Check Code Formatting with Prettier
run: npm run prettier:check ${{ needs.detect_changes.outputs.changed_files }}
- name: Lint PHP Files
if: ${{ needs.detect_changes.outputs.php == 'true' || needs.detect_changes.outputs.dependencies == 'true' }}
uses: aglipanci/laravel-pint-action@v2
with:
testMode: true
verboseMode: true
- name: Lint TypeScript Files
if: ${{ needs.detect_changes.outputs.ts == 'true' || needs.detect_changes.outputs.dependencies == 'true' }}
run: npm run lint:js ${{ needs.detect_changes.outputs.ts_files || '**/*.ts' }}
- name: Lint JavaScript Files
if: ${{ needs.detect_changes.outputs.js == 'true' || needs.detect_changes.outputs.dependencies == 'true' }}
run: npm run lint:js ${{ needs.detect_changes.outputs.js_files || '*.js' }}
- name: Lint CSS Files
if: ${{ needs.detect_changes.outputs.css == 'true' || needs.detect_changes.outputs.dependencies == 'true' }}
run: npm run lint:css ${{ needs.detect_changes.outputs.css_files || '**/*.css' }}
- name: Build Project
run: npm run build