Partially copy the version 1.0.0 usage of PHPCS in more Envs #92
Workflow file for this run
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: Test | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: Test | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install NodeJS | |
uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Setup PHP and Composer | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
tools: composer:v2 | |
- name: Install all dependencies | |
run: | | |
npm install | |
npm run wp-env start | |
npm run wp-env run composer 'install --no-dev' | |
npm run setup:readme-parser | |
- name: Setup environment tools | |
run: npm run setup:tools | |
- name: Test | |
run: npm test |