45 lines
894 B
YAML
45 lines
894 B
YAML
name: Laravel Modules CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- 'v*'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
name: PHP 8.5 / Laravel 13
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.5'
|
|
extensions: mbstring, dom, xml, sqlite3, pdo_sqlite
|
|
coverage: none
|
|
tools: composer:v2
|
|
|
|
- name: Install dependencies
|
|
run: composer install --prefer-dist --no-interaction --no-progress
|
|
|
|
- name: Validate Composer
|
|
run: composer validate --strict
|
|
|
|
- name: Check PHP requirements
|
|
run: composer check-platform-reqs
|
|
|
|
- name: Security audit
|
|
run: composer audit
|
|
|
|
- name: Run PHPUnit
|
|
run: composer test
|