Skip to content

Commit

Permalink
Test with macos-16 on Github Actions (#156)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
jonasfj and HamdaanAliQuatil authored Oct 22, 2024
1 parent 8ac145b commit 01a7504
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ jobs:
--target=integration_test/webcrypto_test.dart \
-d chrome
- run: xvfb-run flutter pub run test -p vm,chrome,firefox
macos:
name: webcrypto on macOS desktop / Chrome
runs-on: macos-14
macos-14:
name: webcrypto on macOS 14 desktop / Chrome
runs-on: macos-14 # Test with xcode 15
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
Expand All @@ -68,7 +68,7 @@ jobs:
- run: flutter test --platform chrome
- run: flutter test integration_test/webcrypto_test.dart -d macos
working-directory: ./example
# TODO: Enable chromdriver testing on MacOS when it works reliably
# TODO: Enable chromedriver testing on MacOS when it works reliably
#- uses: nanasess/setup-chromedriver@v2
#- name: Run integration_test with chromedriver
# working-directory: ./example
Expand All @@ -77,7 +77,29 @@ jobs:
# --driver=test_driver/integration_test.dart \
# --target=integration_test/webcrypto_test.dart \
# -d chrome
- run: flutter pub run test -p vm,chrome # TODO: Enable firefox if it works
# TODO: Enable firefox testing on MacOS when it works
- run: flutter pub run test -p vm,chrome
macos-15:
name: webcrypto on macOS 15 desktop / Chrome
runs-on: macos-15 # Test with xcode 16
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- name: Configure Flutter
run: |
flutter config --no-analytics
- run: flutter pub get
- run: flutter pub run webcrypto:setup
- run: flutter test
- run: flutter test --platform chrome
- run: flutter test integration_test/webcrypto_test.dart -d macos
working-directory: ./example
# TODO: Enable chromedriver testing on MacOS when it works reliably
# TODO: Enable firefox testing on MacOS when it works
- run: flutter pub run test -p vm,chrome
windows:
name: webcrypto on Windows desktop / Chrome / Firefox
runs-on: windows-latest
Expand Down

0 comments on commit 01a7504

Please sign in to comment.