Skip to content

Commit

Permalink
Run tests on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-sviziev committed Aug 2, 2021
1 parent 586dcd4 commit e3061d2
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version:
- "7.3"
- "7.4"
dependencies:
- "lowest"
- "highest"
include:
- php-version: "8.0"
dependencies: "locked"
- php-version: "8.0"
dependencies: "highest"
name: Tests with PHP ${{ matrix.php-version }} and ${{ matrix.dependencies }} dependencies

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Validate composer
run: composer validate

- name: Composer install
uses: "ramsey/composer-install@v1"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "${{ matrix.composer-options }}"

- name: Run unit tests suite
run: vendor/bin/phpunit

0 comments on commit e3061d2

Please sign in to comment.