From c81abb9dd4cdc1a26dc8e76f423d8da63f6ca23c Mon Sep 17 00:00:00 2001 From: Edd Turtle Date: Tue, 28 Nov 2023 08:24:44 +0000 Subject: [PATCH] Add gh actions for phpstan + phpunit --- .github/workflows/phpstan.yml | 14 ++++++++++++++ .github/workflows/phpunit.yml | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/phpstan.yml create mode 100644 .github/workflows/phpunit.yml diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml new file mode 100644 index 0000000..71e81d9 --- /dev/null +++ b/.github/workflows/phpstan.yml @@ -0,0 +1,14 @@ +name: PHPStan (Static Analysis) + +on: [push] + +jobs: + build-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: php-actions/composer@v6 # or alternative dependency management + - uses: php-actions/phpstan@v3 + with: + path: src/ diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml new file mode 100644 index 0000000..9742f07 --- /dev/null +++ b/.github/workflows/phpunit.yml @@ -0,0 +1,12 @@ +name: PHPUnit (Unit Tests) + +on: [push] + +jobs: + build-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: php-actions/composer@v6 # or alternative dependency management + - uses: php-actions/phpunit@v3 \ No newline at end of file