forked from google/pageloader
-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (54 loc) · 1.56 KB
/
dart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Dart CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [stable, 2.17.0]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: dart pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Analyze project source
run: dart analyze --fatal-infos
test:
# runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# sdk: [stable, dev, 2.17.0]
# No `dev` for now since `dart2js` was removed.
sdk: [stable, 2.17.0]
target: [vm, chrome, webdriver]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: dart pub get
- name: Run core, creator tests
if: ${{ matrix.target == 'vm' }}
run: dart test -x webdriver
- name: Run HTML tests
if: ${{ matrix.target == 'chrome' }}
run: dart test -t html -p chrome
- name: Start webdriver
if: ${{ matrix.target == 'webdriver' }}
run: chromedriver --port=4444 --url-base=wd/hub &
- name: Run webdriver tests
if: ${{ matrix.target == 'webdriver' }}
run: dart test -t webdriver