-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
70 lines (60 loc) · 1.83 KB
/
angular_dart_examples.yaml
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
68
69
70
name: angular_dart_examples
on:
push:
paths:
- ".github/workflows/angular_dart_examples.yaml"
- "packages/angular_bloc/**"
- "examples/angular_counter/**"
- "examples/github_search/common_github_search/**"
- "examples/github_search/angular_github_search/**"
pull_request:
paths:
- ".github/workflows/angular_dart_examples.yaml"
- "packages/angular_bloc/**"
- "examples/angular_counter/**"
- "examples/github_search/common_github_search/**"
- "examples/github_search/angular_github_search/**"
jobs:
examples:
strategy:
matrix:
folder:
[
"examples/angular_counter",
"examples/github_search/common_github_search",
"examples/github_search/angular_github_search",
]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
with:
sdk: 3.0.0
- name: Install Dependencies
working-directory: ${{ matrix.folder }}
run: dart pub get
- name: Install webdev
if: matrix.folder != 'examples/github_search/common_github_search'
working-directory: ${{ matrix.folder }}
run: |
dart pub global activate webdev
webdev build
- name: Format
working-directory: ${{ matrix.folder }}
run: dart format --set-exit-if-changed .
- name: Analyze
working-directory: ${{ matrix.folder }}
run: dart analyze --fatal-infos --fatal-warnings .
- name: Run tests
working-directory: ${{ matrix.folder }}
run: |
if [ -d "test" ]; then
dart run build_runner test --fail-on-severe
fi
build:
needs: [examples]
runs-on: ubuntu-latest
steps:
- name: noop
run: echo 'noop'