Adding blueprint.json for enabling plugin previews in WP.org plugin repo #368
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: Check Pull Request | |
on: | |
pull_request: | |
types: [ opened, synchronize ] | |
jobs: | |
php-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install composer dependencies | |
run: composer install | |
- name: Run phpcs | |
run: ./vendor/bin/phpcs | |
frontend-build-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'yarn' | |
- name: Install npm dependencies | |
run: yarn install | |
- name: Run eslint | |
run: yarn lint | |
- name: Build | |
run: yarn build |