-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.15 KB
/
package_mirage.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
name: package/mirage
on:
# Post-submit.
push:
branches: [ main ]
# Pre-submit.
pull_request:
branches: [ main ]
paths:
- .github/workflows/package_mirage.yaml
- packages/mirage/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: dart-lang/[email protected]
- run: dart pub get
working-directory: packages/mirage
- run: ./dev.sh check --packages packages/mirage
- run: ./dev.sh test --packages packages/mirage
- run: ./dev.sh coverage --packages packages/mirage
- uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: mirage
file: packages/mirage/coverage/lcov.info
fail_ci_if_error: true
publish:
if: github.event_name == 'push'
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: dart-lang/[email protected]
- run: dart pub get
working-directory: packages/mirage
- run: ./dev.sh publish --packages packages/mirage
env:
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }}