Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nielslange committed Oct 14, 2024
1 parent 631f878 commit 7942ad9
Showing 1 changed file with 51 additions and 8 deletions.
59 changes: 51 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7942ad9

Please sign in to comment.