forked from angulardart/angular_components
-
Notifications
You must be signed in to change notification settings - Fork 14
/
mono_repo.yaml
46 lines (39 loc) · 1.33 KB
/
mono_repo.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
# See with https://github.com/google/mono_repo.dart for details on this file
self_validate: analyze_and_format
github:
on:
push:
branches:
- main
- master
- null-safety
- fix-ci-null-safety
pull_request:
# cron: '0 0 * * 0' # “At 00:00 (UTC) on Sunday.” # Conflict with `on`
stages:
- analyze_and_format_core
- analyze_and_format_examples_1
- analyze_and_format_examples_2
- unit_test
- build
on_completion:
- name: "Deploy to Firebase Hosting on PR"
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Dart SDK
uses: dart-lang/[email protected]
with:
sdk: stable
- run: dart pub get && dart run build_runner build -o build
working-directory: examples/ngcomponents_example
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ANGULARDART_COMMUNITY }}'
projectId: angulardart-community
merge_stages:
- analyze_and_format_core
- analyze_and_format_examples_1
- analyze_and_format_examples_2