diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a240f57 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file diff --git a/tests/phpunit.xml b/tests/phpunit.xml new file mode 100644 index 0000000..281b1e9 --- /dev/null +++ b/tests/phpunit.xml @@ -0,0 +1,9 @@ + + + + + + . + + + \ No newline at end of file