Update test.yml and phpcs.dist.xml #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
|
||
- 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 |