Skip to content

Commit

Permalink
Create tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwithoos committed Mar 29, 2021
1 parent 065f933 commit e06c84a
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: PHPUnit suite

on:
push:
branches: [ master ]
paths:
- 'src/**'
- 'tests/**'
- 'phpunit.xml'
- 'composer.*'
pull_request:
branches: [ master ]
paths:
- 'src/**'
- 'tests/**'
- 'phpunit.xml'
- 'composer.*'

jobs:
phpunit-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 7.3 ]

name: PHPUnit (PHP ${{ matrix.php }})

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip
tools: composer:v2
coverage: none

- name: Install dependencies
run: |
composer install --no-plugins --no-scripts --no-interaction --no-progress --prefer-dist
- name: Configure matchers
uses: mheap/phpunit-matcher-action@v1

- name: Execute tests
run: vendor/bin/phpunit --teamcity

0 comments on commit e06c84a

Please sign in to comment.