Skip to content
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 cache to the GH Actions #2184

Merged
merged 53 commits into from
May 26, 2021
Merged
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
328cbb2
Add cache to the GH Actions
felipeelia Apr 21, 2021
5a5ef4c
GH Actions: Try to fix a permission problem with NPM
felipeelia Apr 21, 2021
c093837
Cache WP Acceptance env
felipeelia Apr 21, 2021
7e1dce6
Decrease number of posts per page
felipeelia Apr 23, 2021
ce117bd
Try to fix Protected Content tests enabling the feature again
felipeelia Apr 23, 2021
f2353e4
Try a different approach for protected content
felipeelia Apr 23, 2021
9173336
Revert changes in protected content and generate screenshots of errors
felipeelia Apr 23, 2021
dd1fa24
run the upload artifact step if the prev job failed
felipeelia Apr 23, 2021
bd455eb
More debugging
felipeelia Apr 27, 2021
12bd038
Add verbosity to wpa tests
felipeelia Apr 28, 2021
bb12e88
Make sure protected content is enabled in its tests
felipeelia Apr 30, 2021
14a7f90
Small tweaks
felipeelia Apr 30, 2021
7424461
Merge branch 'develop' into tests/issue-2178
felipeelia Apr 30, 2021
3b5c8b6
Adjust tests
felipeelia May 3, 2021
411c193
Remove test for WP_CLI confirm
felipeelia May 3, 2021
9172bd5
Remove test for WP_CLI confirm
felipeelia May 3, 2021
a0c845c
Widgets: fallback to WP-CLI / Autosuggest: diff approach
felipeelia May 3, 2021
d52e667
Avoid tests failing in cascade / More CLI less Screen
felipeelia May 4, 2021
d336221
Fix maybeEnableFeature
felipeelia May 4, 2021
ad595e1
Remove full verbosity from test runner
felipeelia May 5, 2021
87c4048
Fallback to WP-CLI if "Page crashed"
felipeelia May 5, 2021
a95dcc4
User creation: fallback to WP-CLI if "Page crashed"
felipeelia May 5, 2021
a9dbccd
Fix checkMissingIndexes
felipeelia May 5, 2021
2426ab2
More fallback and simplify one plugin deactivation
felipeelia May 5, 2021
88605e1
fix wrong call to deactivatePlugin()
felipeelia May 5, 2021
1e52bfb
Give it a try using the default PHP version of GH Actions
felipeelia May 6, 2021
88d52fe
Revert "Give it a try using the default PHP version of GH Actions"
felipeelia May 6, 2021
14e977b
Try to increase the memory limit for WPA tests
felipeelia May 7, 2021
6add7c5
Bump limit to 2GB
felipeelia May 7, 2021
51795aa
Merge branch 'develop' into tests/issue-2178
felipeelia May 7, 2021
c0f0ea6
Bump memory limite once more
felipeelia May 7, 2021
e827f6b
Run jobs on self-hosted
felipeelia May 7, 2021
5f6aeef
Fix runs-on
felipeelia May 7, 2021
52f4a4d
Don't change PHP version
felipeelia May 7, 2021
a816a89
Comment out a few things
felipeelia May 7, 2021
c8fc58d
Run PHP Unit on GitHub
felipeelia May 7, 2021
0142de3
Add a HOME env
felipeelia May 7, 2021
30e3611
Set COMPOSER_ALLOW_SUPERUSER
felipeelia May 7, 2021
4a4da48
Fix PHP Unit tests
felipeelia May 7, 2021
c7b049d
Setup NPM
felipeelia May 7, 2021
9dcc60f
Setup NPM
felipeelia May 7, 2021
3ee6b6f
Setup PATH
felipeelia May 7, 2021
f3dfb0d
Testing PATH
felipeelia May 7, 2021
bfc8072
Revert self-hosted changes
felipeelia May 21, 2021
02329fc
Add some tolerance to Page crashed errors
felipeelia May 21, 2021
aa6cd14
Get the correct terminal
felipeelia May 21, 2021
df05d02
Go with the regular echo
felipeelia May 21, 2021
bc61485
Use the correct variable
felipeelia May 24, 2021
ac6d0c1
Fix logic of page crashed errors
felipeelia May 24, 2021
bba1f60
Page crashed errors - more fixes
felipeelia May 25, 2021
254826c
Fix if
felipeelia May 25, 2021
98783ff
Merge branch 'develop' into tests/issue-2178
felipeelia May 25, 2021
175397b
Remove unused param of TestBase::isElasticPressIo()
felipeelia May 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Go with the regular echo
  • Loading branch information
felipeelia committed May 21, 2021
commit df05d024e86f39a2f5575b0cc0e33910f55bccdf
6 changes: 3 additions & 3 deletions run-wpacceptance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ fi

# This variable will hold all tests failed with the "Page crashed" error.
ERRORS=''
TTY=$(tty)

for i in $(seq 1 $ATTEMPTS); do

# tee is here to output it in "real time", rather than waiting until it is 100% and echoing it.
TEST_OUTPUT=$(./vendor/bin/wpacceptance run --cache_environment --screenshot_on_failure | tee $TTY)
TEST_OUTPUT=$(./vendor/bin/wpacceptance run --cache_environment --screenshot_on_failure)

EXIT_CODE=$?

echo "${TEST_OUTPUT}"

if [ $EXIT_CODE -ge 1 ] && [ $i -lt $ATTEMPTS ]; then

# List for this specific attempt.
Expand Down