Skip to content

Add Plugin Check workflow #9

Add Plugin Check workflow

Add Plugin Check workflow #9

Workflow file for this run

name: 'Plugin Check'
on:
pull_request:
push:
branches:
- main
- trunk
- 'release/**'
jobs:
prepare:
name: "Build and check plugin"
# Don't run on forks.
if: github.repository_owner == 'Yoast'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up node and enable caching of dependencies
uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- name: Build
run: |
composer install
yarn
grunt build
- name: Run plugin check
uses: swissspidy/wp-plugin-check-action@main
with:
build-dir: './build'