-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/cypress test #148
Open
sudip-md
wants to merge
6
commits into
develop
Choose a base branch
from
feature/cypress-test
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,073
−228
Open
Feature/cypress test #148
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
0d57abd
Adding wp-env as a dev dependency
jamespstyles 5a0b8c1
Adding npm env command
jamespstyles 64c61d9
Adding basic .wp-env.json with latest stable and current plugin
jamespstyles 7d4ec9a
Adding cypress via 10up/cypress-wp-setup
jamespstyles 893a828
added ad-refresh test cases and added test cases for ad refresh contr…
d6fb07b
Add new test cases and validated ad refresh control test case
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,37 @@ | ||
name: E2E test | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- trunk | ||
pull_request: | ||
branches: | ||
- develop | ||
jobs: | ||
cypress: | ||
name: ${{ matrix.core.name }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
core: | ||
- {name: 'WP latest', version: 'latest'} | ||
- {name: 'WP minimum', version: 'WordPress/WordPress#5.2'} | ||
- {name: 'WP trunk', version: 'WordPress/WordPress#master'} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Composer (optional) | ||
run: composer install | ||
continue-on-error: true | ||
- name: Build (optional) | ||
run: npm run build | ||
continue-on-error: true | ||
- name: Set the core version | ||
run: ./tests/bin/set-core-version.js ${{ matrix.core.version }} | ||
- name: Set up WP environment | ||
run: npm run env:start | ||
- name: Test | ||
run: npm run cypress:run |
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,4 @@ | ||
{ | ||
"core": null, | ||
"plugins": ["."] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @sudip-md
For the pipeline, we run the tests on the release ZIP. You can refer to how we're doing it in other plugins such as Restricted Site Access and Simple Local Avatars.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Sidsector9 probably best if you can help update this and get merged in