-
Notifications
You must be signed in to change notification settings - Fork 35
56 lines (54 loc) · 1.63 KB
/
dart_ci.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
name: Dart CI
on:
workflow_dispatch:
push:
branches:
- "master"
- "_integration/**/*"
- "experiments/**/*"
- "test_consume_**"
pull_request:
branches:
- "**"
concurrency:
group: opentelemetry-coverage-${{ github.ref }}-1
cancel-in-progress: true
permissions:
contents: read
issues: write
pull-requests: write
jobs:
test-dartv2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dart-lang/setup-dart@v1
with:
sdk: 2.19.6
- run: sudo apt install -y protobuf-compiler
- run: make init format analyze test
- name: Generate Coverage
run: dart test --coverage=./coverage
- name: Activate Coverage Package
run: dart pub global activate coverage
- name: Format Coverage
run: dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --report-on=lib --lcov -o ./coverage/lcov.info -i ./coverage
- name: Activate RemoveFromCoverage Package
run: dart pub global activate remove_from_coverage
- name: Ignore Files For Coverage
run: dart pub global run remove_from_coverage:remove_from_coverage -f coverage/lcov.info -r 'lib\/src\/sdk\/proto\/opentelemetry\/proto\/.+'
- name: Package Artifacts
run: ./package.sh
test-dartv3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dart-lang/setup-dart@v1
with:
sdk: 3.2.0
- run: sudo apt install -y protobuf-compiler
- run: make init format analyze test