diff --git a/.github/workflows/php_84.yml b/.github/workflows/php_84.yml new file mode 100644 index 0000000..aa7d89b --- /dev/null +++ b/.github/workflows/php_84.yml @@ -0,0 +1,39 @@ +name: PHP 8.4 +on: push + +jobs: + build: + name: Static analysis, unit tests, and linting + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Setup PHP 8.4 + uses: shivammathur/setup-php@v2 + with: + php-version: '8.4' + tools: composer + + - name: Cache Composer dependencies + uses: actions/cache@v5 + with: + path: ./vendor + key: composer-${{ runner.os }}-8.4 + + - name: Install dependencies + run: | + composer install + + - name: Run PHPStan + run: | + ./vendor/bin/phpstan + + - name: PHP Code Sniffer + run: | + ./vendor/bin/phpcs + + - name: Run PHPUnit + run: | + ./vendor/bin/phpunit \ No newline at end of file diff --git a/.github/workflows/php_85.yml b/.github/workflows/php_85.yml new file mode 100644 index 0000000..b44a2d1 --- /dev/null +++ b/.github/workflows/php_85.yml @@ -0,0 +1,39 @@ +name: PHP 8.5 +on: push + +jobs: + build: + name: Static analysis, unit tests, and linting + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Setup PHP 8.5 + uses: shivammathur/setup-php@v2 + with: + php-version: '8.5' + tools: composer + + - name: Cache Composer dependencies + uses: actions/cache@v5 + with: + path: ./vendor + key: composer-${{ runner.os }}-8.5 + + - name: Install dependencies + run: | + composer install + + - name: Run PHPStan + run: | + ./vendor/bin/phpstan + + - name: PHP Code Sniffer + run: | + ./vendor/bin/phpcs + + - name: Run PHPUnit + run: | + ./vendor/bin/phpunit \ No newline at end of file diff --git a/.gitignore b/.gitignore index edede23..0f0f75e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,5 @@ composer.phar composer.lock vendor/ -storage/ .phpunit.cache .phpunit.result.cache \ No newline at end of file diff --git a/phpstan.neon b/phpstan.neon index a29f3a0..fa81b49 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -3,7 +3,6 @@ parameters: paths: - src - tests - tmpDir: /var/www/html/storage/phpstan-cache reportUnmatchedIgnoredErrors: true includes: