-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add the wordpress plugin check action (#92)
* test: add the wordpress plugin check action * refactor: unify the process of create the openedx-commerce directory for the release
- Loading branch information
Showing
3 changed files
with
38 additions
and
2 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 |
---|---|---|
|
@@ -19,12 +19,16 @@ jobs: | |
with: | ||
composer-options: "--no-dev" | ||
|
||
- name: Prepare the openedx-commerce directory for the release | ||
run: | | ||
make release | ||
- name: Archive Release | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'openedx-commerce.zip' | ||
exclusions: '*.git* .* /test/* /requirements/* /docs/* composer.lock *.yaml *.xml Makefile' | ||
command: 'cd ./openedx-commerce' | ||
filename: '../openedx-commerce.zip' | ||
|
||
- name: Upload zip to latest release | ||
uses: xresloader/upload-to-github-release@v1 | ||
|
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,25 @@ | ||
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" | ||
|
||
- name: Prepare the openedx-commerce directory for the release | ||
run: | | ||
make release | ||
- name: Run plugin check | ||
uses: wordpress/plugin-check-action@v1 | ||
with: | ||
build-dir: './openedx-commerce' |
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