Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 20 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,26 @@ jobs:
PLATFORM: vm
run: ./tool/ci/bots.sh

# Only run on ubuntu-latest because `flutter test --platform chrome` hangs on
# windows-latest (see https://github.com/flutter/flutter/issues/162798).
test-browser:
name: ubuntu-latest test_browser
needs: flutter-prep
runs-on: ubuntu-latest
steps:
- name: git clone
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Load Cached Flutter SDK
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: |
./tool/flutter-sdk
key: flutter-sdk-${{ runner.os }}-${{ needs.flutter-prep.outputs.latest_flutter_candidate }}
- name: tool/ci/bots.sh
env:
BOT: test_browser
run: ./tool/ci/bots.sh

macos-test:
needs: flutter-prep
name: macos goldens ${{ matrix.bot }}
Expand Down Expand Up @@ -395,11 +415,3 @@ jobs:
# BOT: ${{ matrix.bot }}
# run: ./tool/ci/bots.sh

# TODO(https://github.com/flutter/devtools/issues/2437):
# PLATFORM=chrome is going away. We need to move these tests to run with
# chromedriver.
# - BOT=test_ddc PLATFORM=chrome
# PLATFORM=chrome is going away. We need to move these tests to run with
# chromedriver.
# - BOT=test_dart2js PLATFORM=chrome

10 changes: 8 additions & 2 deletions tool/ci/bots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,19 @@ elif [[ "$BOT" == "test_ddc" || "$BOT" == "test_dart2js" ]]; then
# used to do when integration tests were enabled).
if [ "$PLATFORM" = "vm" ]; then
WEBDEV_RELEASE=$USE_WEBDEV_RELEASE flutter test $FILES
elif [ "$PLATFORM" = "chrome" ]; then
WEBDEV_RELEASE=$USE_WEBDEV_RELEASE flutter test --platform chrome $FILES
else
echo "unknown test platform"
exit 1
fi

elif [ "$BOT" = "test_browser" ]; then
FILES=$(grep -rlE --include='*_test.dart' "@TestOn\(['\"]browser['\"]\)" test | tr '\n' ' ' || true)
if [ -z "$FILES" ]; then
echo "No @TestOn('browser') test files found in test/"
exit 1
Comment thread
johnpryan marked this conversation as resolved.
Resolved
fi
flutter test --platform chrome $FILES

elif [ "$BOT" = "test_webdriver" ]; then
flutter test webdriver_test

Expand Down
Loading