-
Notifications
You must be signed in to change notification settings - Fork 21
66 lines (56 loc) · 1.79 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
60
61
62
63
64
65
66
name: package:file
permissions: read-all
on:
# Run on PRs and pushes to the default branch.
push:
branches: [ main ]
paths:
- '.github/workflows/file.yml'
- 'pkgs/file/**'
- 'pkgs/file_testing/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/file.yml'
- 'pkgs/file/**'
- 'pkgs/file_testing/**'
schedule:
- cron: "0 0 * * 0"
jobs:
correctness:
runs-on: ubuntu-latest
strategy:
matrix:
package: [file, file_testing]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: dev
- name: Install ${{ matrix.package }} dependencies
working-directory: pkgs/${{ matrix.package }}
run: dart pub get
- name: Verify formatting in ${{ matrix.package }}
working-directory: pkgs/${{ matrix.package }}
run: dart format --output=none --set-exit-if-changed .
- name: Analyze package ${{ matrix.package }} source
working-directory: pkgs/${{ 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@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- name: Install ${{ matrix.package }} dependencies
working-directory: pkgs/${{ matrix.package }}
run: dart pub get
- name: Run ${{ matrix.package }} Tests
working-directory: pkgs/${{ matrix.package }}
run: dart pub run test -j1