Skip to content

Commit

Permalink
Revert test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nielslange committed Oct 7, 2024
1 parent 253b23a commit 43ea9dd
Showing 1 changed file with 35 additions and 15 deletions.
50 changes: 35 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,50 @@ name: Run PHPCS, PHPLint and Psalm
on: [pull_request, push]

jobs:
linting:
PHPCS:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master

- name: Install Composer dependencies
uses: ramsey/composer-install@v2

- name: Show PHPCS sniffs
run: ./vendor/bin/phpcs -i

strategy:
matrix:
task: [phpcs, phplint, psalm]
- 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
uses: actions/checkout@master

- name: Install Composer dependencies
uses: ramsey/composer-install@v2

- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- 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@master

- name: Install Composer dependencies
uses: ramsey/composer-install@v2

- name: Show version info
run: ./vendor/bin/${{ matrix.task }} --version
run: ./vendor/bin/psalm --version

- name: Run ${{ matrix.task | toLowerCase() }}
run: composer ${{ matrix.task }}
- name: Run Psalm
run: composer psalm

0 comments on commit 43ea9dd

Please sign in to comment.