Skip to content

Fix seeders, improve documentation, add examples of migrations #3

Fix seeders, improve documentation, add examples of migrations

Fix seeders, improve documentation, add examples of migrations #3

Workflow file for this run

name: Code Style
on:
pull_request:
jobs:
lint-plugin:
name: Run Linter and Static Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout Source Code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
ini-values: error_reporting=E_ALL
tools: composer
coverage: none
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Composer Dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install PHP Dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Install Javascript Dependencies
run: yarn install --frozen-lockfile
- name: Run Javascript Linter
run: |
echo "Running ESLint $(eslint --version)"
npm run lint
echo "Running Prettier $(prettier --version)"
npm run test:format
- name: Run PHP Linter
run: |
echo "Running $(./vendor/bin/pint --version)"
composer test:lint
- name: Run Static Analysis
run: |
echo "Running $(./vendor/bin/phpstan --version)"
composer test:types