blob: 75e57b5d1234cacd939e223365241e8707d282e7 [file] [edit]
# See https://pub.dev/packages/mono_repo for details
stages:
- analyzer_and_format:
- group:
- format
- analyze: --fatal-infos .
- test: test/build/ensure_version_test.dart
sdk: dev
- unit_test:
# Linux extension tests:
# Note: `Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &` must be
# run first for Linux.
- group:
- command: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- command: echo "CHROME_EXECUTABLE=$(which google-chrome)" >> $GITHUB_ENV
- test: --tags=extension
sdk: dev
os:
- linux
# Windows extension tests:
- group:
- test: --tags=extension
sdk: dev
os:
- windows
# First test shard (Linux):
- group:
- command: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- command: echo "CHROME_EXECUTABLE=$(which google-chrome)" >> $GITHUB_ENV
- test: --total-shards 3 --shard-index 0 --exclude-tags=extension
sdk: dev
os:
- linux
# First test shard (Windows):
- group:
- test: --total-shards 3 --shard-index 0 --exclude-tags=extension
sdk: dev
os:
- windows
# Second test shard (Linux):
- group:
- command: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- command: echo "CHROME_EXECUTABLE=$(which google-chrome)" >> $GITHUB_ENV
- test: --total-shards 3 --shard-index 1 --exclude-tags=extension
sdk: dev
os:
- linux
# Second test shard (Windows):
- group:
- test: --total-shards 3 --shard-index 1 --exclude-tags=extension
sdk: dev
os:
- windows
# Third test shard (Linux):
- group:
- command: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- command: echo "CHROME_EXECUTABLE=$(which google-chrome)" >> $GITHUB_ENV
- test: --total-shards 3 --shard-index 2 --exclude-tags=extension
sdk: dev
os:
- linux
# Third test shard (Windows):
- group:
- test: --total-shards 3 --shard-index 2 --exclude-tags=extension
sdk: dev
os:
- windows
- beta_cron:
- analyze: .
sdk: beta
- group:
- command: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- command: echo "CHROME_EXECUTABLE=$(which google-chrome)" >> $GITHUB_ENV
- test: -j 1
sdk: beta
- test: -j 1
os: windows
sdk: beta