Skip to content

Commit

Permalink
Moving from travis to github actions for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronDDM committed Jul 29, 2021
1 parent 670f017 commit 8484580
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: unit-test

on: [push]

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.2', '7.3', '7.4', '8.0']
name: PHP v${{ matrix.php-versions }}
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v1
with:
php-version: ${{ matrix.php-versions }}

- name: PHP version
run: php -v

- name: Composer install
run: composer install --dev

- name: Run tests
run: phpunit --coverage-text
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

0 comments on commit 8484580

Please sign in to comment.