-
Notifications
You must be signed in to change notification settings - Fork 555
52 lines (44 loc) · 1.4 KB
/
dart_services.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
name: package:dart_services
on:
push:
branches: [ main ]
paths:
- '.github/workflows/dart_services.yml'
- 'pkgs/dart_services/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/dart_services.yml'
- 'pkgs/dart_services/**'
schedule:
- cron: '0 0 * * *' # daily
jobs:
# Check code formatting, static analysis, and build on a single OS (linux).
verify:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkgs/dart_services/
strategy:
fail-fast: false
matrix:
sdk: [stable, beta, main]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: subosito/flutter-action@74af56c5ed2697ba4621264652728e8d217e53d3
with:
channel: ${{ matrix.sdk }}
- run: flutter --version
- name: Install dart dependencies
run: dart pub get
- name: Analyze project source
run: dart analyze --fatal-infos
- name: Verify formatting
run: dart format --set-exit-if-changed bin lib test tool
- name: Create template projects and populate the custom pub cache
run: dart run grinder build-project-templates
# Build the web artifacts on the bots to ensure they don't regress.
- name: Build web artifacts
run: dart run grinder build-storage-artifacts
- name: Run tests
run: dart test