Skip to content

Commit b95c141

Browse files
committed
add github actions
1 parent 14a4f10 commit b95c141

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test Changes
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
php: [ '7.4', '8.0' ]
11+
name: PHP ${{ matrix.php }} test
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Install dependencies
15+
uses: php-actions/composer@v5
16+
- name: PHPUnit tests
17+
uses: php-actions/phpunit@v2
18+
env:
19+
TB_KEY: ${{ secrets.TB_KEY }}
20+
TB_SECRET: ${{ secrets.TB_SECRET }}
21+
with:
22+
configuration: tests/phpunit.xml

tests/phpunit.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit bootstrap="../vendor/autoload.php" colors="true">
4+
<testsuites>
5+
<testsuite name="ProjectRoot Test Suite">
6+
<directory>.</directory>
7+
</testsuite>
8+
</testsuites>
9+
</phpunit>

0 commit comments

Comments
 (0)