Skip to content

Commit

Permalink
Switch CI to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
landrok authored Dec 18, 2023
1 parent c57f890 commit a539f50
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: PHP Composer

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

jobs:
integration:
name: PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3']

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-versions }}"
coverage: xdebug
ini-values: "memory_limit=-1"
tools: phpunit, composer

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-${{ matrix.php-versions }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.php-versions }}-php-
- name: Install dependencies
run: composer update --no-progress --no-suggest --ansi

- name: Run test suite
run: |
php -v
vendor/bin/phpunit -c phpunit.xml.dist

0 comments on commit a539f50

Please sign in to comment.