Skip to content

Commit

Permalink
Add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
BafS committed Oct 27, 2023
1 parent 44a155d commit 855e0ed
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: PHP Unit/Quality CI

on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.4', '8.0', '8.1', '8.2']
dependency-version: [prefer-lowest, prefer-stable]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none

- name: Install Dependencies
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi

- name: PHP Unit
run: ./vendor/bin/phpunit --testdox

0 comments on commit 855e0ed

Please sign in to comment.