This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (46 loc) · 1.54 KB
/
codecov.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
46
47
48
49
50
51
52
53
54
55
56
name: Upload code coverage reports
on:
pull_request:
paths:
- '.github/workflows/codecov.yml'
- 'codecov.yml'
- 'packages/windows_foundation/**'
- 'packages/winrtgen/**'
push:
branches:
- main
paths:
- '.github/workflows/codecov.yml'
- 'codecov.yml'
- 'packages/windows_foundation/**'
- 'packages/winrtgen/**'
jobs:
build:
runs-on: windows-2022
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v3
- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: main
- name: Install coverage
run: dart pub global activate coverage
- name: 📦 Install Dependencies for windows_foundation
run: dart pub get
working-directory: packages/windows_foundation
- name: 📊 Generate Code Coverage for windows_foundation
run: dart pub global run coverage:test_with_coverage
working-directory: packages/windows_foundation
- name: 📦 Install Dependencies for winrtgen
run: dart pub get
working-directory: packages/winrtgen
- name: 📊 Generate Code Coverage for winrtgen
run: dart pub global run coverage:test_with_coverage
working-directory: packages/winrtgen
- name: Upload Code Coverage Reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: packages/windows_foundation/coverage/lcov.info,packages/winrtgen/coverage/lcov.info