From 768d9e1d9e22f9c91717581cec3747a059c9bc4b Mon Sep 17 00:00:00 2001 From: TangRufus Date: Thu, 2 Jan 2025 23:15:52 +0000 Subject: [PATCH] wip dorp me --- .github/workflows/test.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) 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