Skip to content

Commit 01a7504

Browse files
Test with macos-16 on Github Actions (#156)
* Test with macos-16 on Github Actions * Update test.yml macos-15 has xcode 16 * fix: ensure flutter driver connection * fix: add headless flag * fix: add diagnostic flags * fix: add logs * Skip integration tests with chromedriver on macos-15 We do these tests on macos-14 and for some reason they don't work on macos-15. * Install firefox for testing on macos * Disable firefox testing on macos --------- Co-authored-by: HamdaanAliQuatil <[email protected]>
1 parent 8ac145b commit 01a7504

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ jobs:
5050
--target=integration_test/webcrypto_test.dart \
5151
-d chrome
5252
- run: xvfb-run flutter pub run test -p vm,chrome,firefox
53-
macos:
54-
name: webcrypto on macOS desktop / Chrome
55-
runs-on: macos-14
53+
macos-14:
54+
name: webcrypto on macOS 14 desktop / Chrome
55+
runs-on: macos-14 # Test with xcode 15
5656
steps:
5757
- uses: actions/checkout@v4
5858
- uses: subosito/flutter-action@v2
@@ -68,7 +68,7 @@ jobs:
6868
- run: flutter test --platform chrome
6969
- run: flutter test integration_test/webcrypto_test.dart -d macos
7070
working-directory: ./example
71-
# TODO: Enable chromdriver testing on MacOS when it works reliably
71+
# TODO: Enable chromedriver testing on MacOS when it works reliably
7272
#- uses: nanasess/setup-chromedriver@v2
7373
#- name: Run integration_test with chromedriver
7474
# working-directory: ./example
@@ -77,7 +77,29 @@ jobs:
7777
# --driver=test_driver/integration_test.dart \
7878
# --target=integration_test/webcrypto_test.dart \
7979
# -d chrome
80-
- run: flutter pub run test -p vm,chrome # TODO: Enable firefox if it works
80+
# TODO: Enable firefox testing on MacOS when it works
81+
- run: flutter pub run test -p vm,chrome
82+
macos-15:
83+
name: webcrypto on macOS 15 desktop / Chrome
84+
runs-on: macos-15 # Test with xcode 16
85+
steps:
86+
- uses: actions/checkout@v4
87+
- uses: subosito/flutter-action@v2
88+
with:
89+
channel: 'stable'
90+
cache: true
91+
- name: Configure Flutter
92+
run: |
93+
flutter config --no-analytics
94+
- run: flutter pub get
95+
- run: flutter pub run webcrypto:setup
96+
- run: flutter test
97+
- run: flutter test --platform chrome
98+
- run: flutter test integration_test/webcrypto_test.dart -d macos
99+
working-directory: ./example
100+
# TODO: Enable chromedriver testing on MacOS when it works reliably
101+
# TODO: Enable firefox testing on MacOS when it works
102+
- run: flutter pub run test -p vm,chrome
81103
windows:
82104
name: webcrypto on Windows desktop / Chrome / Firefox
83105
runs-on: windows-latest

0 commit comments

Comments
 (0)