Skip to content

fix: merge develop fixes (ESM compat + package-lock) #13

fix: merge develop fixes (ESM compat + package-lock)

fix: merge develop fixes (ESM compat + package-lock) #13

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite
coverage: none
- name: Install Composer dependencies
run: composer install --prefer-dist --no-progress
- name: Lint (Pint)
run: vendor/bin/pint --test
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: Install Node dependencies
run: npm ci
- name: Build frontend assets
run: npm run build
- name: Prepare Laravel
run: |
cp .env.example .env
php artisan key:generate
- name: Test
run: php artisan test
commitlint:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Validate PR commits
run: npx commitlint --from \${{ github.event.pull_request.base.sha }} --to \${{ github.event.pull_request.head.sha }} --verbose