This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
59 lines (48 loc) · 1.6 KB
/
file.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
name: Dart
on:
schedule:
# “At 00:00 (UTC) on Sunday.”
- cron: '0 0 * * 0'
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions: read-all
jobs:
correctness:
runs-on: ubuntu-latest
strategy:
matrix:
package: [file, file_testing]
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
- uses: dart-lang/setup-dart@f0ead981b4d9a35b37f30d36160575d60931ec30
with:
sdk: dev
- name: Install ${{ matrix.package }} dependencies
working-directory: packages/${{ matrix.package }}
run: dart pub get
- name: Verify formatting in ${{ matrix.package }}
working-directory: packages/${{ matrix.package }}
run: dart format --output=none --set-exit-if-changed .
- name: Analyze package ${{ matrix.package }} source
working-directory: packages/${{ matrix.package }}
run: dart analyze --fatal-infos
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
package: [file]
os: [ubuntu-latest, macos-latest, windows-latest]
sdk: [stable, dev]
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
- uses: dart-lang/setup-dart@f0ead981b4d9a35b37f30d36160575d60931ec30
with:
sdk: ${{ matrix.sdk }}
- name: Install ${{ matrix.package }} dependencies
working-directory: packages/${{ matrix.package }}
run: dart pub get
- name: Run ${{ matrix.package }} Tests
working-directory: packages/${{ matrix.package }}
run: dart pub run test -j1