-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: WordPress Plugin Check Linter Findings & Release
v4.5.0
(#38)
* First pass at fixing WP plugin check findings * First pass at adding WP plugin check CI job * Exclude GitHub dot files from WP action * Fix path of dir to exclude * Switch to use wp dist-archive * Attemp to remove dot files * Cleanup workflow file * Cleanup WP linter action * Update GH readme to match WP readme
- Loading branch information
1 parent
2fc0403
commit 879e1f3
Showing
11 changed files
with
709 additions
and
129 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.DS_Store | ||
.distignore | ||
.git/ | ||
.gitignore | ||
/.github/ | ||
/README.md |
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,31 @@ | ||
name: 'WordPress Plugin Check' | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- 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:@stable | ||
- name: Build plugin | ||
run: | | ||
wp dist-archive . ./display-event-locations-tec.zip | ||
mkdir tmp-build | ||
unzip display-event-locations-tec.zip -d tmp-build | ||
- name: Run plugin check | ||
uses: wordpress/plugin-check-action@v1 | ||
with: | ||
build-dir: './tmp-build/display-event-locations-tec' |
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
Oops, something went wrong.