-
Notifications
You must be signed in to change notification settings - Fork 42
45 lines (35 loc) · 991 Bytes
/
build.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
name: Build
on:
pull_request:
paths-ignore:
- "**.md"
- "**.mdx"
schedule:
# runs the CI everyday at 10AM
- cron: "0 10 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 2
- uses: subosito/[email protected]
with:
channel: master
- name: Add pub cache bin to PATH
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
- name: Add pub cache to PATH
run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV
- run: cd packages/dart_firebase_admin
- name: Install dependencies
run: dart pub get
- name: Check format
run: dart format --set-exit-if-changed .
- name: Analyze
run: dart analyze
- name: Run tests
run: |
${{github.workspace}}/scripts/coverage.sh
- name: Upload coverage to codecov
run: curl -s https://codecov.io/bash | bash