Skip to content

test: add the wordpress plugin check action #11

test: add the wordpress plugin check action

test: add the wordpress plugin check action #11

name: 'WordPress Plugin Check'
on:
pull_request
jobs:
check:
name: Plugin Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Composer dependencies
uses: ramsey/composer-install@v3

Check failure on line 14 in .github/workflows/wordpress-plugin-check.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/wordpress-plugin-check.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
with:
composer-options: "--no-dev"
# Prepare the plugin as we prepare it in the ZIP creation
- name: Create openedx-commerce directory and copy files
run: |
mkdir openedx-commerce
rsync -av --exclude='*.git*' --exclude='.*' --exclude='/test/*' --exclude='/requirements/*' --exclude='/docs/*' --exclude='composer.lock' --exclude='*.yaml' --exclude='*.xml' --exclude='Makefile' ./ openedx-commerce/
- name: Run plugin check
uses: wordpress/plugin-check-action@v1
with:
build-dir: './openedx-commerce'