-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bbbc02
commit b883c1f
Showing
2 changed files
with
56 additions
and
0 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,55 @@ | ||
name: WP Plugin Check | ||
on: # Rebuild any PRs and main branch changes | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
- 'releases/*' | ||
# Allows you to run this workflow manually from the Actions tab. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
# Runs the WP Plugin Check. | ||
# | ||
# Checks from the Plugin Review Team. | ||
# | ||
# For the detailed list of checks: | ||
# - https://wordpress.org/plugins/plugin-check/ | ||
# | ||
# Performs the following steps: | ||
# - Checks out the repository. | ||
# - Sets up PHP. | ||
# - Installs Composer dependencies. | ||
# - Runs the Plugin Check. | ||
plugin-check: | ||
name: Plugin Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up PHP | ||
uses: shivammathur/setup-php@2.30.0 | ||
with: | ||
php-version: '7.4' | ||
coverage: none | ||
env: | ||
fail-fast: false | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate --strict | ||
|
||
- name: Install Composer dependencies | ||
uses: ramsey/composer-install@v3 | ||
with: | ||
composer-options: "--no-dev" | ||
|
||
- name: Copy the plugin files to the plugin check folder, excluding the files on .distignore. | ||
run: rsync -rc --exclude-from="$GITHUB_WORKSPACE/.distignore" "$GITHUB_WORKSPACE/" gp-format-csv/ --delete --delete-excluded | ||
|
||
- name: Run plugin check | ||
uses: swissspidy/wp-plugin-check-action@main | ||
with: | ||
build-dir: 'gp-format-csv' |
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