mirror of
https://github.com/chenasraf/latch.git
synced 2026-05-17 17:28:08 +00:00
35 lines
673 B
YAML
35 lines
673 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
php: ['8.2', '8.3', '8.4']
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
coverage: none
|
|
|
|
- name: Install dependencies
|
|
run: composer install --no-interaction --prefer-dist
|
|
|
|
- name: Run tests
|
|
run: vendor/bin/pest
|
|
|
|
- name: Run static analysis
|
|
run: vendor/bin/phpstan analyse
|
|
|
|
- name: Check code style
|
|
run: vendor/bin/pint --test
|