-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add acceptance tests #84
Merged
Merged
Changes from 38 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
b58a231
Set up WP Acceptance
e0ec75f
Add initial tests for classic editor
8b3a6e2
Add wp acceptance config
a93db41
Add tests
b8b64d5
Disable publishing while saving autoshare settings
3b6c85a
Add wp acceptance to test workflow
4f2e65d
Fix workflow variables
99d58a1
Use wp_rand instead of rand
8f69ef4
Switch back to rand
582b9d3
Add username toWP acceptance AWS setup command
98ec721
Set wpsnapshots directory
fafe351
Pass secrets as env variables
f9aff4c
Use format function for snapshots dir env variable
f14e9dd
Try to fix syntax
7553eca
Try different syntax
9418a46
Pass snapshots dir in command
82986f1
Try to fix empty GITHUB_WORKSPACE
6647295
Test
1ae1496
Test
4cba862
Update snapshot id?
af275ee
Test on PHP 7.3
42adee3
Used forked repo with fix
9679e7c
Update tests
589da3e
Add before_scripts
57cc398
Add usleeps
ccc03af
Replace usleep with waitUntilNavigation
a19db98
Update WP Acceptance
db4aa92
Test PHP 7.2
bf5aac0
Action: add sql service
14bdece
Test
80e7770
Update mysql service
906723e
Add mysql port
8892c94
Add mysql env
4697125
Test
5bd5496
Restore to previous state
8f48bdc
Test
b8af9c2
Update .github/workflows/test.yml
johnwatkins0 79dda78
Update .github/workflows/test.yml
johnwatkins0 2c0708e
Update composer.json
johnwatkins0 7aee469
Test in 7.2
johnwatkins0 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 |
---|---|---|
|
@@ -21,18 +21,27 @@ jobs: | |
uses: icrawl/action-eslint@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
with: | ||
job-name: eslint | ||
|
||
test_php: | ||
runs-on: ubuntu-latest | ||
services: | ||
mysql: | ||
image: mariadb:10.4 | ||
env: | ||
MYSQL_ROOT_PASSWORD: root | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=10s --health-retries=10 | ||
strategy: | ||
matrix: | ||
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: composer install | ||
- name: Run PHPCS | ||
|
@@ -42,3 +51,8 @@ jobs: | |
run: | | ||
composer run setup-local-tests | ||
composer test | ||
- name: Run WP Acceptance | ||
if: matrix.php-versions == '7.3' | ||
run: | | ||
WP_SNAPSHOTS_DIR=${{ github.workspace }}/.wpsnapshots/ ./vendor/bin/wpsnapshots configure --aws_key=${{ secrets.AWS_ACCESS_KEY }} --aws_secret=${{ secrets.SECRET_ACCESS_KEY }} --user_name="wp-acceptance" [email protected] 10up | ||
./vendor/bin/wpacceptance 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
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.
Can we run tests on 7.2 too?