diff --git a/.github/workflows/deepseek-automation-test.yml b/.github/workflows/deepseek-automation-test.yml new file mode 100644 index 0000000..2b78312 --- /dev/null +++ b/.github/workflows/deepseek-automation-test.yml @@ -0,0 +1,49 @@ +name: tests + +on: + push: + branches: [master] + pull_request: + branches: [master] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + tests: + name: PHP ${{ matrix.php }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + php: ['8.1', '8.2', '8.3', '8.4'] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP ${{ matrix.php }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: none + tools: composer:v2 + + - name: Install Composer dependencies + uses: ramsey/composer-install@v3 + with: + composer-options: "--prefer-dist --no-progress --no-interaction" + + - name: Lint (Pint --test) + run: composer test:lint + + - name: Static analysis (PHPStan) + run: composer test:types + + - name: Type coverage (Pest) + run: composer test:type-coverage + + - name: Unit tests (Pest) + run: composer test:unit