Skip to content

Commit

Permalink
Add gh actions for phpstan + phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
eddturtle committed Nov 28, 2023
1 parent c2f2074 commit c81abb9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -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/
12 changes: 12 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c81abb9

Please sign in to comment.