Skip to content

Update test.yml and phpcs.dist.xml #38

Update test.yml and phpcs.dist.xml

Update test.yml and phpcs.dist.xml #38

Workflow file for this run

name: Run PHPCS, PHPLint, Psalm and Cypress
on: [pull_request, push]
jobs:
PHP_Tools:
runs-on: ubuntu-latest
strategy:
matrix:
tool: [PHPCS, PHPLint, Psalm]
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 ${matrix.tool} version info
run: ./vendor/bin/${{ matrix.tool,, }} --version

Check failure on line 24 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Run PHPCS, PHPLint, Psalm and Cypress

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 24, Col: 20): Unexpected symbol: ','. Located at position 12 within expression: matrix.tool,, .github/workflows/test.yml (Line: 27, Col: 20): Unexpected symbol: ','. Located at position 12 within expression: matrix.tool,,
- name: Run ${matrix.tool}
run: composer ${{ matrix.tool,, }}
Cypress:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: npm install
- name: Cypress run
uses: cypress-io/github-action@v2
with:
start: npm run wp-env start
wait-on: 'http://localhost:8888'
browser: chrome
headless: true