Skip to content

Commit

Permalink
Merge 26d9b22 into 5bbdb46
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelWei committed Jan 28, 2021
2 parents 5bbdb46 + 26d9b22 commit 727c3e0
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI

on:
push:
pull_request:

jobs:
PHP:
name: PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}

strategy:
fail-fast: false
matrix:
php-versions: ['7.2','7.3','7.4']
experimental: [false]
include:
- php-versions: '8.1'
experimental: true

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: bcmath, ctype, fileinfo, json, mbstring, dom, ldap, pdo, tokenizer, xml, mysql, sqlite
coverage: xdebug
- name: Install php dependencies
run: |
composer self-update
composer install --dev --no-interaction
- name: Execute code style check via php-cs-fixer
run: vendor/bin/php-cs-fixer fix --dry-run
- name: Execute tests with coverage
if: matrix.php-versions != '8.1'
run: |
mkdir -p build/logs
vendor/bin/phpunit --coverage-clover=build/logs/coverage.xml
- name: Execute tests without coverage
if: matrix.php-versions == '8.1'
run: vendor/bin/phpunit

- name: Coveralls
if: matrix.php-versions == '7.2'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: vendor/bin/php-coveralls --coverage_clover=build/logs/coverage.xml -v


HHVM:
name: HHVM
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
- uses: azjezz/setup-hhvm@v1
with:
version: 'latest'
- run: hhvm $(which composer) self-update
- run: hhvm $(which composer) install --dev --no-interaction
- run: hhvm vendor/bin/phpunit

0 comments on commit 727c3e0

Please sign in to comment.