Skip to content

Commit

Permalink
cypress workflow add test codes to ensure proper module branch is in …
Browse files Browse the repository at this point in the history
…dist
  • Loading branch information
circlecube committed Dec 7, 2023
1 parent bb77f71 commit 8ece1bc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/bluehost-plugin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout plugin
uses: actions/checkout@v4
with:
repository: bluehost/bluehost-wordpress-plugin
ref: 'main'

- name: Use Node.js 16.x
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -60,10 +54,16 @@ jobs:
- name: Install PHP Dependencies
run: composer install --no-progress --no-dev --optimize-autoloader --prefer-dist

- name: Modify composer.json
- name: Get source for module
run: |
composer reinstall ${{ github.repository }} --prefer-source
- name: Checkout plugin
uses: actions/checkout@v4
with:
repository: bluehost/bluehost-wordpress-plugin
ref: 'main'

- name: Checkout module branch
if: ${{ steps.extract_branch.outputs.branch != 'main' }}
working-directory: ./vendor/${{ github.repository }}
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
- name: View modified files
run: cat package.json composer.json

# Skip for now because marketplace module doesn't have a build script.
# Skip because marketplace module doesn't have a build script.
# - name: Build JavaScript in module
# working-directory: ./vendor/${{ github.repository }}
# run: npm run build
Expand Down
3 changes: 3 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ function () {
);

}


// test comment line in branch to ensure we have the proper files
2 changes: 1 addition & 1 deletion components/marketplace/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const defaults = {

// set defaults if not provided
constants = Object.assign(defaults, constants);

constants.subTitle += ' - Test text in branch the ensure proper js component is loaded from branch';
/**
* on mount load all marketplace data from module api
*/
Expand Down

0 comments on commit 8ece1bc

Please sign in to comment.