diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4f91252..35b472b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,19 +4,36 @@ on: push: jobs: - php-matrix: + pint: runs-on: ubuntu-latest - outputs: - matrix: ${{ steps.php-matrix.outputs.matrix }} steps: - uses: actions/checkout@v4 + + - uses: typisttech/php-matrix-action@main + id: php-matrix + + - uses: shivammathur/setup-php@v2 with: - sparse-checkout: composer.json - sparse-checkout-cone-mode: false + php-version: ${{ steps.php-matrix.outputs.matrix }} + + - run: pint --test + + + pint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 - uses: typisttech/php-matrix-action@main id: php-matrix + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ fromJSON(steps.php-matrix.outputs.matrix).lowest }} + tools: pint + + - run: pint --test + pest: runs-on: ubuntu-latest needs: php-matrix