forked from Ignition-World/ignition-pay
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (64 loc) · 1.92 KB
/
Copy pathci-dart.yml
File metadata and controls
69 lines (64 loc) · 1.92 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: ci-dart
on:
pull_request:
paths:
- packages/core-dart/**
- spec/**
push:
branches: [main]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: stable
- run: cd packages/core-dart && dart pub get
- run: cd packages/core-dart && dart analyze --fatal-infos
test:
runs-on: ubuntu-latest
strategy:
matrix:
sdk: [3.0, 3.6, stable]
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- id: setup-chrome
uses: browser-actions/setup-chrome@v1
- run: cd packages/core-dart && dart pub get
- run: cd packages/core-dart && dart test
test-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: stable
- id: setup-chrome
uses: browser-actions/setup-chrome@v1
- run: cd packages/core-dart && dart pub get
- run: cd packages/core-dart && dart test test/web_compat --platform chrome
env:
CHROME_EXECUTABLE: ${{ steps.setup-chrome.outputs.chrome-path }}
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: stable
- run: cd packages/core-dart && dart pub get
- run: cd packages/core-dart && dart test --coverage=coverage
- name: Generate coverage report
run: |
cd packages/core-dart
dart pub global activate coverage
dart run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.dart_tool/package_config.json --report-on=lib
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: packages/core-dart/coverage.lcov
flags: dart