-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into http-proxy-support
- Loading branch information
Showing
19 changed files
with
214 additions
and
71 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
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 |
---|---|---|
@@ -1,8 +1,25 @@ | ||
#!/bin/bash | ||
set -e # fail on error | ||
# | ||
# Run in examples/basic-mini directory | ||
# (amd64 only) | ||
# Run ./scripts/test.sh in examples/basic-mini directory | ||
# | ||
echo Test base-mini with cypress/included in Chrome | ||
docker run --rm -v .:/app -w /app --entrypoint cypress cypress/included run -b chrome | ||
ARCHITECTURE=$(uname -m) | ||
echo Running on $ARCHITECTURE | ||
|
||
echo Test basic-mini example | ||
|
||
case $ARCHITECTURE in | ||
x86_64) | ||
echo Testing cypress/included in amd64 using Chrome | ||
docker run --rm -v .:/app -w /app --entrypoint cypress cypress/included run -b chrome | ||
;; | ||
aarch64) | ||
echo Testing cypress/included in arm64 using Electron | ||
echo No other browsers available | ||
docker run --rm -v .:/app -w /app cypress/included | ||
;; | ||
*) | ||
echo Unsupported architecture | ||
exit 1 | ||
;; | ||
esac |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,6 +7,6 @@ | |
}, | ||
"private": true, | ||
"devDependencies": { | ||
"cypress": "^13.17.0" | ||
"cypress": "^14.0.0" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,14 +1,30 @@ | ||
#!/bin/bash | ||
set -e # fail on error | ||
# | ||
# Run in examples/basic directory | ||
# (amd64 only) | ||
# Run ./scripts/test.sh in examples/basic directory | ||
# | ||
ARCHITECTURE=$(uname -m) | ||
echo Running on $ARCHITECTURE | ||
|
||
echo Test basic example | ||
npm ci # Install dependencies | ||
npm ci # Install dependencies | ||
echo Build and test with cypress/base in Electron | ||
docker build -f Dockerfile.base -t test-base . # Build a new image | ||
docker run --rm --entrypoint bash test-base -c "npx cypress run" # Run Cypress test in container | ||
echo Build and test with cypress/browsers in Chrome | ||
docker build -f Dockerfile.browsers -t test-browsers . # Build a new image | ||
docker run --rm --entrypoint bash test-browsers -c "npx cypress run -b chrome" # Run Cypress test in container using Chrome | ||
|
||
case $ARCHITECTURE in | ||
x86_64) | ||
echo Testing browsers in amd64 | ||
echo Build and test with cypress/browsers in Chrome | ||
docker build -f Dockerfile.browsers -t test-browsers . # Build a new image | ||
docker run --rm --entrypoint bash test-browsers -c "npx cypress run -b chrome" # Run Cypress test in container using Chrome | ||
;; | ||
aarch64) | ||
echo Skipping browser tests for arm64 | ||
echo No browsers available | ||
;; | ||
*) | ||
echo Unsupported architecture | ||
exit 1 | ||
;; | ||
esac |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
}, | ||
"private": true, | ||
"devDependencies": { | ||
"cypress": "^13.17.0" | ||
"cypress": "^14.0.0" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,9 +1,25 @@ | ||
#!/bin/bash | ||
set -e # fail on error | ||
# | ||
# Run in examples/chromium directory | ||
# Run ./scripts/test.sh in examples/chromium directory | ||
# | ||
ARCHITECTURE=$(uname -m) | ||
echo Running on $ARCHITECTURE | ||
|
||
case $ARCHITECTURE in | ||
x86_64) | ||
echo Testing Chromium browser in amd64 | ||
;; | ||
aarch64) | ||
echo Testing Chromium browser in arm64 | ||
;; | ||
*) | ||
echo Unsupported architecture | ||
exit 1 | ||
;; | ||
esac | ||
|
||
echo Test Chromium in cypress/base | ||
npm ci # Install dependencies | ||
docker build -t test-chromium . # Build a new image | ||
npm ci # Install dependencies | ||
docker build -t test-chromium . # Build a new image | ||
docker run --rm --entrypoint bash test-chromium -c "npx cypress run --browser chromium" # Run Cypress test using Chromium |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
}, | ||
"private": true, | ||
"devDependencies": { | ||
"cypress": "^13.17.0" | ||
"cypress": "^14.0.0" | ||
} | ||
} |
Oops, something went wrong.