Skip to content

Workflow file for this run

name: Build and Test PHP
on:
pull_request:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [8.1, 8.2] # List of PHP versions to test
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl
- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist
- name: Build project
run: php artisan build # Adjust based on your framework or build process