Ensure PHP 5.6+ support during CI to avoid breaking changes #468
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: Lint and Test | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
cache: 'npm' | |
node-version-file: '.nvmrc' | |
- name: Setup PHP and Composer | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
tools: composer:v2 | |
- name: Install NPM dependencies | |
run: npm install | |
- name: Lint JS | |
run: npm run lint:js | |
- name: Lint CSS | |
run: npm run lint:css | |
- name: Lint PHP | |
run: npm run lint:php || true # Ignore for now. | |
- name: Lint PHP Compatibility | |
run: composer lint-compat | |
- name: Test | |
run: npm run test | |
- name: Build | |
run: npm run build |