diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index da528d2..fc04bdf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,10 +1,10 @@ name: Tests on: - push: + push: master pull_request: schedule: - - cron: '0 1 * * *' + - cron: '0 1 0 * *' jobs: test: @@ -12,6 +12,7 @@ jobs: strategy: matrix: php: [ '8.1', '8.2', '8.3' ] + phpstan: [ '^1.0', '^2.0' ] steps: - uses: actions/checkout@v4 - name: Setup PHP with tools @@ -19,7 +20,7 @@ jobs: with: php-version: ${{ matrix.php }} tools: composer - - run: composer install + - run: composer require phpstan/phpstan ${{ matrix.phpstan }} - run: composer test format: @@ -42,6 +43,7 @@ jobs: strategy: matrix: php: [ '8.1' ] + phpstan: [ '^1.0', '^2.0' ] steps: - uses: actions/checkout@v4 - name: Setup PHP with tools @@ -49,5 +51,5 @@ jobs: with: php-version: ${{ matrix.php }} tools: composer - - run: composer install + - run: composer require phpstan/phpstan ${{ matrix.phpstan }} - run: composer analyse