Skip to content

Prepare v3.10 (#310) #402

Prepare v3.10 (#310)

Prepare v3.10 (#310) #402

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: Run tests ${{matrix.sdk}} on ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
sdk: ['stable']
runs-on: ${{ matrix.os }}
steps:
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- uses: actions/checkout@v4
- run: dart --version
- run: dart pub get
- run: dart analyze --fatal-infos .
- run: dart example/download_chrome.dart
- run: xvfb-run --auto-servernum dart test -P ci --platform vm
if: runner.os == 'Linux'
- run: dart test -P ci --platform vm --concurrency 1
if: runner.os != 'Linux'
env:
PUPPETEER_SKIP_GOLDEN_COMPARISON: 'true'
- run: dart tool/prepare_submit.dart
- name: "check for uncommitted changes"
run: |
git diff --exit-code --stat -- . \
|| (echo "##[error] found changed files after build. please run 'dart tool/prepare_submit.dart'" \
"and check in all changes" \
&& exit 1)
shell: bash