Skip to content

Commit 88cda39

Browse files
authored
test: add firefox arm64 examples tests for gha (#1322)
Test in GitHub Actions on ubuntu-24.04-arm
1 parent 75b31fd commit 88cda39

File tree

3 files changed

+17
-20
lines changed

3 files changed

+17
-20
lines changed

.github/workflows/example-tests.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,20 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
directory: [
17-
basic-mini,
18-
basic,
19-
chrome-for-testing,
20-
chromium,
21-
firefox-esr,
22-
included-as-non-root
17+
basic-mini, # testing cypress/included
18+
basic, # testing cypress/browsers
19+
chrome-for-testing,
20+
chromium,
21+
firefox-esr,
22+
included-as-non-root,
2323
]
2424
os: [
25-
ubuntu-24.04 # testing Linux/amd64 platform
26-
#
27-
# temporarily disable testing on arm due to reliability issues
28-
# see https://github.com/actions/partner-runner-images/issues for updates
29-
#
30-
# ubuntu-24.04-arm # testing Linux/arm64 platform
25+
ubuntu-24.04, # testing Linux/amd64 platform
26+
ubuntu-24.04-arm, # testing Linux/arm64 platform
3127
]
32-
# exclude:
33-
# - os: ubuntu-24.04-arm
34-
# directory: chrome-for-testing #browser not available for Linux/arm64
28+
exclude:
29+
- os: ubuntu-24.04-arm
30+
directory: chrome-for-testing # browser not available for Linux/arm64
3531
runs-on: ${{ matrix.os }}
3632
steps:
3733
- uses: actions/checkout@v4

examples/basic-mini/scripts/test.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ case $ARCHITECTURE in
1414
docker run --rm -v .:/app -w /app --entrypoint cypress cypress/included run -b chrome
1515
;;
1616
aarch64)
17-
echo Testing cypress/included in arm64 using Electron
18-
echo No other browsers available
19-
docker run --rm -v .:/app -w /app cypress/included
17+
echo Testing cypress/included in arm64 using Firefox
18+
docker run --rm -v .:/app -w /app --entrypoint cypress cypress/included run -b firefox
2019
;;
2120
*)
2221
echo Unsupported architecture

examples/basic/scripts/test.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ case $ARCHITECTURE in
2020
docker run --rm --entrypoint bash test-browsers -c "npx cypress run -b chrome" # Run Cypress test in container using Chrome
2121
;;
2222
aarch64)
23-
echo Skipping browser tests for arm64
24-
echo No browsers available
23+
echo Testing browsers in amd64
24+
echo Build and test with cypress/browsers in Firefox
25+
docker build -f Dockerfile.browsers -t test-browsers . # Build a new image
26+
docker run --rm --entrypoint bash test-browsers -c "npx cypress run -b firefox" # Run Cypress test in container using Firefox
2527
;;
2628
*)
2729
echo Unsupported architecture

0 commit comments

Comments
 (0)