-
Notifications
You must be signed in to change notification settings - Fork 19
62 lines (50 loc) · 1.49 KB
/
test.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Test Pipeline
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
analyze:
name: Analyze Code
runs-on: macos-14
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
- uses: bluefireteam/melos-action@v3
- name: Bootstrap
run: |
dart pub global activate melos
melos bootstrap
- name: Check formatting
run: melos format -- --set-exit-if-changed
- name: Check linting
run: |
cd packages/pharaoh && dart run build_runner build --delete-conflicting-outputs
melos analyze
test:
name: Test Packages
runs-on: macos-14
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
- uses: bluefireteam/melos-action@v3
- name: Bootstrap
run: |
dart pub global activate melos
melos bootstrap
cd packages/pharaoh && dart run build_runner build --delete-conflicting-outputs
- name: Run Unit tests
run: melos tests:ci
- name: Upload Coverage
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage/*_lcov.info