Added GitHub test Actions workflow

This commit is contained in:
Meghdad committed 2026-06-25 14:57:59 +03:30
1 parent 9266cc66eb
commit 99468ae0d2
1 file changed
+43
+43
View File
@@ -0,0 +1,43 @@
name: Tests
on:
push:
pull_request:
permissions:
contents: read
jobs:
tests:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '8.3'
- '8.4'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, dom, fileinfo, ftp, mbstring, json
coverage: none
- name: Validate Composer
run: composer validate --strict --no-interaction
- name: Install Dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Run Pint
run: vendor/bin/pint --test
- name: Run Pest
run: vendor/bin/pest