-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (42 loc) 路 1.03 KB
/
Copy pathtest.yaml
File metadata and controls
49 lines (42 loc) 路 1.03 KB
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
name: test
on:
push:
branches:
- main
paths:
- "lib/**"
- "test/**"
- "example/**"
- "pubspec.yaml"
- ".github/workflows/test.yaml"
pull_request:
branches:
- main
paths:
- "lib/**"
- "test/**"
- "example/**"
- "pubspec.yaml"
- ".github/workflows/test.yaml"
permissions:
contents: read
jobs:
test:
name: 馃И Test
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
timeout-minutes: 10
steps:
- name: 馃摎 Checks-out repository
uses: actions/checkout@v6.0.2
- name: 馃幆 Setup Dart
uses: dart-lang/setup-dart@v1.7.1
- name: 馃摝 Install Dependencies
run: dart pub upgrade
- name: 馃И Run Tests
run: dart run coverage:test_with_coverage --fail-under=99
- name: 馃挴 Upload Code Coverage
uses: codecov/codecov-action@v6.0.0
with:
files: ./coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}