Skip to content

Commit 0028dd6

Browse files
authored
[infra] Try uploading combined coverage (#2328)
1 parent 09a756c commit 0028dd6

File tree

13 files changed

+16
-34
lines changed

13 files changed

+16
-34
lines changed

.github/workflows/ffigen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
- name: Upload coverage
105105
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
106106
with:
107-
carryforward: "ffigen,jni,jnigen,native_assets_builder_macos,native_assets_builder_ubuntu,native_assets_builder_windows,native_assets_cli_macos,native_assets_cli_ubuntu,native_assets_cli_windows,native_toolchain_c_macos,native_toolchain_c_ubuntu,native_toolchain_c_windows,objective_c,swift2objc"
107+
carryforward: "ffigen,jni,jnigen,native_pkgs_macos,native_pkgs_ubuntu,native_pkgs_windows,objective_c,swift2objc"
108108
github-token: ${{ secrets.GITHUB_TOKEN }}
109109
parallel-finished: true
110110

.github/workflows/jnigen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,6 @@ jobs:
447447
- name: Coveralls finished
448448
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
449449
with:
450-
carryforward: "ffigen,jni,jnigen,native_assets_builder_macos,native_assets_builder_ubuntu,native_assets_builder_windows,native_assets_cli_macos,native_assets_cli_ubuntu,native_assets_cli_windows,native_toolchain_c_macos,native_toolchain_c_ubuntu,native_toolchain_c_windows,objective_c,swift2objc"
450+
carryforward: "ffigen,jni,jnigen,native_pkgs_macos,native_pkgs_ubuntu,native_pkgs_windows,objective_c,swift2objc"
451451
github-token: ${{ secrets.github_token }}
452452
parallel-finished: true

.github/workflows/native.yaml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,12 @@ jobs:
4040
matrix:
4141
os: [ubuntu, macos, windows]
4242
sdk: [dev]
43-
package:
44-
# TODO(https://github.com/dart-lang/tools/issues/2083): Remove running coverage per package.
45-
- code_assets # currently dubs as place where all packages are run
46-
- data_assets
47-
- hooks
48-
- hooks_runner
49-
- native_toolchain_c
5043

5144
runs-on: ${{ matrix.os }}-latest
5245

5346
defaults:
5447
run:
55-
working-directory: pkgs/${{ matrix.package }}
48+
working-directory: .
5649

5750
steps:
5851
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
@@ -73,21 +66,12 @@ jobs:
7366
- run: dart pub get
7467

7568
- name: Run pub get, analysis, formatting, generators, tests, and examples.
76-
run: dart tool/ci.dart --pub
77-
working-directory: .
78-
if: ${{ matrix.package == 'code_assets' }}
79-
80-
# TODO(https://github.com/dart-lang/tools/issues/2083): Remove running coverage per package.
81-
- name: Install coverage
82-
run: dart pub global activate coverage
83-
84-
- name: Collect coverage
85-
run: dart pub global run coverage:test_with_coverage
69+
run: dart tool/ci.dart --pub --coverage
8670

8771
- name: Upload coverage
8872
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
8973
with:
90-
flag-name: ${{ matrix.package }}_${{ matrix.os }}
74+
flag-name: native_pkgs_${{ matrix.os }}
9175
github-token: ${{ secrets.GITHUB_TOKEN }}
9276
parallel: true
9377

@@ -98,6 +82,6 @@ jobs:
9882
- name: Upload coverage
9983
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
10084
with:
101-
carryforward: "ffigen,jni,jnigen,native_assets_builder_macos,native_assets_builder_ubuntu,native_assets_builder_windows,native_assets_cli_macos,native_assets_cli_ubuntu,native_assets_cli_windows,native_toolchain_c_macos,native_toolchain_c_ubuntu,native_toolchain_c_windows,objective_c,swift2objc"
85+
carryforward: "ffigen,jni,jnigen,native_pkgs_macos,native_pkgs_ubuntu,native_pkgs_windows,objective_c,swift2objc"
10286
github-token: ${{ secrets.GITHUB_TOKEN }}
10387
parallel-finished: true

.github/workflows/objective_c.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: Upload coverage
7777
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
7878
with:
79-
carryforward: "ffigen,jni,jnigen,native_assets_builder_macos,native_assets_builder_ubuntu,native_assets_builder_windows,native_assets_cli_macos,native_assets_cli_ubuntu,native_assets_cli_windows,native_toolchain_c_macos,native_toolchain_c_ubuntu,native_toolchain_c_windows,objective_c,swift2objc"
79+
carryforward: "ffigen,jni,jnigen,native_pkgs_macos,native_pkgs_ubuntu,native_pkgs_windows,objective_c,swift2objc"
8080
github-token: ${{ secrets.GITHUB_TOKEN }}
8181
parallel-finished: true
8282

.github/workflows/swift2objc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ jobs:
6767
- name: Upload coverage
6868
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
6969
with:
70-
carryforward: "ffigen,jni,jnigen,native_assets_builder_macos,native_assets_builder_ubuntu,native_assets_builder_windows,native_assets_cli_macos,native_assets_cli_ubuntu,native_assets_cli_windows,native_toolchain_c_macos,native_toolchain_c_ubuntu,native_toolchain_c_windows,objective_c,swift2objc"
70+
carryforward: "ffigen,jni,jnigen,native_pkgs_macos,native_pkgs_ubuntu,native_pkgs_windows,objective_c,swift2objc"
7171
github-token: ${{ secrets.GITHUB_TOKEN }}
7272
parallel-finished: true

pkgs/code_assets/analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ analyzer:
88
strict-inference: true
99
strict-raw-types: true
1010
plugins:
11-
- custom_lint
11+
# - custom_lint # https://github.com/dart-lang/sdk/issues/60784
1212

1313
linter:
1414
rules:

pkgs/data_assets/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.19.2
1+
## 0.19.1
22

33
* Bump the SDK constraint to at least the one from `package:hooks` to fix
44
dartdoc generation on https://pub.dev.

pkgs/data_assets/analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ analyzer:
88
strict-inference: true
99
strict-raw-types: true
1010
plugins:
11-
- custom_lint
11+
# - custom_lint # https://github.com/dart-lang/sdk/issues/60784
1212

1313
linter:
1414
rules:

pkgs/hooks/analysis_options.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ analyzer:
88
strict-inference: true
99
strict-raw-types: true
1010
plugins:
11-
- custom_lint
11+
# - custom_lint # https://github.com/dart-lang/sdk/issues/60784
1212

1313
linter:
1414
rules:
@@ -21,4 +21,3 @@ linter:
2121
custom_lint:
2222
rules:
2323
- avoid_import_outside_src
24-

pkgs/hooks_runner/analysis_options.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ analyzer:
88
strict-inference: true
99
strict-raw-types: true
1010
plugins:
11-
- custom_lint
11+
# - custom_lint # https://github.com/dart-lang/sdk/issues/60784
1212

1313
linter:
1414
rules:
@@ -21,4 +21,3 @@ linter:
2121
custom_lint:
2222
rules:
2323
- avoid_import_outside_src
24-

pkgs/json_syntax_generator/analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ analyzer:
88
strict-inference: true
99
strict-raw-types: true
1010
plugins:
11-
- custom_lint
11+
# - custom_lint # https://github.com/dart-lang/sdk/issues/60784
1212

1313
linter:
1414
rules:

pkgs/native_toolchain_c/analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ analyzer:
88
strict-inference: true
99
strict-raw-types: true
1010
plugins:
11-
- custom_lint
11+
# - custom_lint # https://github.com/dart-lang/sdk/issues/60784
1212

1313
linter:
1414
rules:

pkgs/repo_lint_rules/analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ analyzer:
88
strict-inference: true
99
strict-raw-types: true
1010
plugins:
11-
- custom_lint
11+
# - custom_lint # https://github.com/dart-lang/sdk/issues/60784
1212

1313
linter:
1414
rules:

0 commit comments

Comments
 (0)