Skip to content

Commit

Permalink
test: add the wordpress plugin check action
Browse files Browse the repository at this point in the history
  • Loading branch information
MaferMazu committed Sep 3, 2024
1 parent 1aee9b3 commit 7de2a84
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/wordpress-plugin-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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
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'

0 comments on commit 7de2a84

Please sign in to comment.