-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #616 from carstingaxion/feature/wp-plugin-check-ac…
…tion Introduce wp.org plugin-guidelines check action
- Loading branch information
Showing
4 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: 'WordPress.org plugin directory guidelines' | ||
on: # rebuild any PRs and main branch changes | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
wp-org-plugin-guidelines: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: latest | ||
coverage: none | ||
tools: wp-cli | ||
|
||
- name: Install latest version of dist-archive-command | ||
run: wp package install wp-cli/dist-archive-command:dev-main | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
# Make sure to use the same version like WordPress/gutenberg. | ||
node-version-file: '.nvmrc' | ||
cache: npm | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build plugin | ||
run: | | ||
npm run build | ||
wp dist-archive . ./gatherpress.zip | ||
mkdir tmp-build | ||
unzip gatherpress.zip -d tmp-build | ||
- name: Run plugin check | ||
uses: swissspidy/wp-plugin-check-action@main | ||
with: | ||
build-dir: './tmp-build/gatherpress' | ||
wp-version: 'trunk' |
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
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