Skip to content

Commit

Permalink
CI: added tests as Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
foxycode committed Jan 20, 2021
1 parent f5240ba commit 6a72d84
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Tests

on:
- push
- pull_request

jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
php: ['7.1', '7.2', '7.3', '7.4', '8.0']

fail-fast: false

name: PHP ${{ matrix.php }} tests on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: tokenizer
coverage: none

- run: composer install --no-progress --prefer-dist
- run: vendor/bin/tester tests -s -C
- if: failure()
uses: actions/upload-artifact@v2
with:
name: output
path: tests/**/output

0 comments on commit 6a72d84

Please sign in to comment.