-
Notifications
You must be signed in to change notification settings - Fork 0
/
mono_repo.yaml
47 lines (39 loc) · 1.68 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
47
# Enabled GitHub actions - https://docs.github.com/actions
# If you have no configuration, you can set the value to `true` or just leave it
# empty.
github:
on_completion:
- name: Test & Publish coverage
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/[email protected]
with:
path: "~/.pub-cache/hosted"
key: "eventuousgi"
restore-keys: eventuous
- uses: dart-lang/[email protected]
with:
sdk: stable
- id: checkout
uses: actions/[email protected]
- name: packages/eventuous; dart pub upgrade && pub global activate coverage
working-directory: packages/eventuous
run: dart pub upgrade && dart pub global activate coverage
- name: packages/eventuous; Run tests with coverage
working-directory: packages/eventuous
run: dart test -j 1 --reporter=expanded --coverage="coverage"
- name: packages/eventuous; Collect test coverage
working-directory: packages/eventuous
run: dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.dart_tool/package_config.json --report-on=lib
- name: Publish test coverage
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
# Adds a job that runs `mono_repo generate --validate` to check that everything
# is upto date. You can specify the value as just `true` or give a `stage`
# you'd like this job to run in.
self_validate: analyze
# Use this key to merge stages across packages to create fewer jobs
merge_stages:
- analyze_and_format