-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run macOS E2E tests on Buildkite (#207)
* WIP * Makes onboarding work! * Make create site work * Make delete site work * All E2E tests work 🎉 * Fix E2E tearDown cleanup condition * Cleanup * Add a check for consistency * Only run onboarding when needed * Improve debugging * Remove useless comment * Address lint issues * Run lint, unit, and E2E tests on Buildkite (issue with caching) * Remove E2E step – It's failing and don't want to slow the unit tests * Add step to run E2E tests in Buildkite Currently failing, see #37 * Add build matrix with Windows and Mac queues for E2E tests * Call E2E with `bash` explicitly * Add OS name in E2E tests label * Add traces to E2E runs * Fix E2E matrix combinations * Fix lint issues * Make paths system agnostic * Remove no longer valid fixme comment * Clarify comment * Use latest CI plugin version * Use new variables in pipeline * Fix executable path of Windows build in E2E tests * Use `throw new Error` instead of undefined `fail` to fail E2E teardown * Run E2E in Buildkite with `DEBUG=pw:browser` * Remove a trailing whitespace * Test - Run unit tests on Windows, too * Remove Windows test steps in Buildkite Deferring enabling them till we'll have found a solution for Windows-specific issues. In the meantime, I aim to run E2E macOS tests on Buildkite instead of GitHub Actions in all PRs. * Remove macOS as a target for E2E tests in GitHub Actions * Extract CI toolkit version in dedicated var This should make it easier to locate and update the version if needed * Use shared var to define NVM CI plugin * Remove `agents: queue: mac` from the pipeline root We have a variety of steps and platforms in the pipeline now. It no longer makes sense to default to macOS. --------- Co-authored-by: Wojtek Naruniec <wojtek@naruniec.me> Co-authored-by: Carlos Garcia <fluiddot@gmail.com>
- Loading branch information
1 parent
80e0de9
commit 2c218d2
Showing
9 changed files
with
72 additions
and
22 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
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,13 @@ | ||
#!/bin/sh | ||
|
||
# This file is `source`'d in CI before calling `buildkite-agent pipeline upload`, and can be used | ||
# to set up some variables that will be interpolated in the `.yml` pipeline before uploading it. | ||
|
||
# The ~> modifier is not currently used, but we check for it just in case | ||
XCODE_VERSION=$(sed -E -n 's/^(~> )?(.*)/xcode-\2/p' .xcode-version) | ||
CI_TOOLKIT_VERSION='3.4.2' | ||
NVM_PLUGIN_VERSION='0.3.0' | ||
|
||
export IMAGE_ID="$XCODE_VERSION" | ||
export CI_TOOLKIT_PLUGIN="automattic/a8c-ci-toolkit#$CI_TOOLKIT_VERSION" | ||
export NVM_PLUGIN="automattic/nvm#$NVM_PLUGIN_VERSION" |
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 |
---|---|---|
|
@@ -8,7 +8,6 @@ jobs: | |
strategy: | ||
matrix: | ||
os: | ||
- macos-latest | ||
- windows-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
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 |
---|---|---|
|
@@ -107,3 +107,6 @@ vendor/* | |
|
||
# Build output | ||
dist | ||
|
||
# Playwright traces | ||
test-results |
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 @@ | ||
15.2 |
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
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
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
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