Skip to content

initial

initial #2

Workflow file for this run

name: App CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
PHP:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend
strategy:
matrix:
php-version: [8.4]
env:
PHP_CS_FIXER_IGNORE_ENV: 1
DATABASE_URL: "sqlite:///:memory:"
steps:
- uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, json, opentelemetry
coverage: xdebug
- name: Install dependencies
run: composer install --prefer-dist --no-scripts
- name: Run static code analysis
run: vendor/bin/phpstan analyse
- name: Run code style checks
run: vendor/bin/php-cs-fixer check
- name: Run automated tests
run: vendor/bin/phpunit
- name: Run architecture analysis
run: vendor/bin/deptrac analyse
Node:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'frontend'
strategy:
matrix:
node-version: ['v23.11']
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build --if-present
- name: Run tests
run: npm test