Skip to content

Commit

Permalink
switch from travis to github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Jun 17, 2021
1 parent eb98d28 commit 3fea9bb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: PHPUnit

on:
pull_request:
push:
branches:
- master

jobs:
php:
runs-on: ubuntu-latest

strategy:
# do not stop on another job's failure
fail-fast: false
matrix:
php-versions: ['7.2', '7.4', '8.0']

name: php${{ matrix.php-versions }}

steps:
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, iconv, fileinfo, intl
coverage: none

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

- name: Run unit tests
run: |
composer install
sh -c "cd tests/unit/ && ../../vendor/bin/phpunit ."
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

0 comments on commit 3fea9bb

Please sign in to comment.