From 23e2fbc54f0613280ab873a0cd861f46b7aa9bcd Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 14 Apr 2024 15:01:09 +0200 Subject: [PATCH] Update itinerant_phpstan_and_phpunit.yml --- .../itinerant_phpstan_and_phpunit.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/itinerant_phpstan_and_phpunit.yml b/.github/workflows/itinerant_phpstan_and_phpunit.yml index 02a6eadf..b828586e 100644 --- a/.github/workflows/itinerant_phpstan_and_phpunit.yml +++ b/.github/workflows/itinerant_phpstan_and_phpunit.yml @@ -1,4 +1,5 @@ # https://github.com/php-actions +# https://github.com/setup-php name: itinerant_phpstan_and_phpunit on: @@ -32,3 +33,28 @@ jobs: uses: php-actions/phpunit@v3 with: php_version: ${{ matrix.php_version }} + + itinerant_phpstan_and_phpunit_alt: + name: "${{ github.event.inputs.repo }}" + strategy: + fail-fast: false + matrix: + php_version: [latest] + runs-on: ubuntu-latest + steps: + - run: echo "Testing ${{ github.event.inputs.repo }}..." + - uses: actions/checkout@v4 + with: + repository: ${{ github.event.inputs.repo }} + - run: ls -Fla + - run: pip install --user codespell[toml] + - run: codespell || true + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php_version }} + tools: phplint, phpstan, phpunit + - run: phplint + - if: ${{ always() }} + run: phpstan + - if: ${{ always() }} + run: phpunit