diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..cf4b4c7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +/.github export-ignore +/phpunit.xml export-ignore +/tests export-ignore \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..94d4681 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI +on: [push] +jobs: + build-test: + runs-on: ubuntu-latest + environment: actions + steps: + - uses: actions/checkout@master + - uses: actions/checkout@v3 + - uses: php-actions/composer@v6 + - uses: php-actions/phpunit@v3 + env: + XDEBUG_MODE: coverage + with: + bootstrap: vendor/autoload.php + configuration: phpunit.xml + php_extensions: xdebug + coverage_clover: coverage.xml + - if: success() || failure() + uses: codecov/codecov-action@v4 + with: + files: coverage.xml + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.gitignore b/.gitignore deleted file mode 100644 index af50cbc..0000000 --- a/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -.DS_Store -/.cache/ -/coverage/ -/docs/ -/tools/ -/vendor/ diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..57cc989 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,25 @@ + + + + + tests + + + + + + src + + +