Prepare release v5.17.0 #137
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: CI | |
on: [push] | |
jobs: | |
lint_php: | |
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up PHP and composer | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.2' | |
tools: composer:v1 | |
- name: Lint PHP syntax | |
run: composer phplint | |
- name: Instal composer dependencies | |
run: composer install | |
- name: Lint PHP code using PHP_CodeSniffer | |
run: composer phpcs | |
test_custom_php_sniffs: | |
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up PHP and composer | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.2' | |
tools: composer:v1 | |
- name: Instal composer dependencies | |
run: composer install | |
- name: Run phpcs unit tests | |
run: vendor/bin/phpunit --no-configuration --bootstrap=vendor/squizlabs/php_codesniffer/tests/bootstrap.php --dont-report-useless-tests php/php-codesniffer-standard/VIISON/TestSuite.php | |
lint_javascript: | |
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install npm dependencies | |
run: npm install | |
- name: Lint JavaScript code using ESLint | |
run: npm run eslint | |
lint_structured_files: | |
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install npm dependencies | |
run: npm install | |
- name: Lint structured files using Prettier | |
run: npm run lint-structured-files |