Skip to content

Commit

Permalink
add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
delabiejochen committed May 5, 2021
1 parent 14a4f10 commit b95c141
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test Changes

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '7.4', '8.0' ]
name: PHP ${{ matrix.php }} test
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: php-actions/composer@v5
- name: PHPUnit tests
uses: php-actions/phpunit@v2
env:
TB_KEY: ${{ secrets.TB_KEY }}
TB_SECRET: ${{ secrets.TB_SECRET }}
with:
configuration: tests/phpunit.xml
9 changes: 9 additions & 0 deletions tests/phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="../vendor/autoload.php" colors="true">
<testsuites>
<testsuite name="ProjectRoot Test Suite">
<directory>.</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit b95c141

Please sign in to comment.