From 7942ad93db0fe9948dfc4cfc82a8134dfa3e455e Mon Sep 17 00:00:00 2001 From: Niels Lange Date: Mon, 14 Oct 2024 19:00:46 +0700 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 59 ++++++++++++++++++++++++++++++++------ 1 file changed, 51 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7fd1986..c08e948 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,11 +3,8 @@ name: Run PHPCS, PHPLint, Psalm and Cypress on: [pull_request, push] jobs: - PHP_Tools: + PHPCS: runs-on: ubuntu-latest - strategy: - matrix: - tool: [phpcs, phplint, psalm] steps: - name: Checkout code uses: actions/checkout@v2 @@ -20,11 +17,57 @@ jobs: - name: Install Composer dependencies uses: ramsey/composer-install@v1 - - name: Show version info of ${{ matrix.tool }} - run: ./vendor/bin/${{ matrix.tool }} --version + - name: Show PHPCS sniffs + run: ./vendor/bin/phpcs -i - - name: Run ${{ matrix.tool }} - run: composer run-script ${{ matrix.tool }} + - name: Show PHPCS version + run: ./vendor/bin/phpcs --version + + - name: Run PHP_CodeSniffer + run: composer phpcs + + PHPLint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + + - name: Install Composer dependencies + uses: ramsey/composer-install@v1 + + - name: Show PHPLint version info + run: ./vendor/bin/phplint --version + + - name: Run PHPLint + run: composer phplint + + Psalm: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + + - name: Install Composer dependencies + uses: ramsey/composer-install@v1 + + - name: Show PHPCS sniffs + run: ./vendor/bin/phpcs -i + + - name: Show version info + run: ./vendor/bin/psalm --version + + - name: Run Psalm + run: composer psalm Cypress: runs-on: ubuntu-latest