Skip to content

Commit 62e9bb1

Browse files
committed
chore: moved things around
1 parent 09c86ae commit 62e9bb1

File tree

3 files changed

+9
-50
lines changed

3 files changed

+9
-50
lines changed

.github/workflows/code_quality.yml

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -85,52 +85,6 @@ jobs:
8585
env:
8686
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # Required only for private repositories
8787

88-
code_coverage:
89-
name: Collect and Upload Combined Coverage
90-
runs-on: ubuntu-latest
91-
steps:
92-
- name: Checkout code
93-
uses: actions/checkout@v3
94-
95-
- name: Setup Dart
96-
uses: dart-lang/setup-dart@v1
97-
98-
- name: Install Dependencies with Melos
99-
run: dart pub global activate melos && melos bootstrap
100-
101-
- name: Run Tests with Coverage for All Packages
102-
run: |
103-
melos exec -- dart run test --coverage=coverage
104-
105-
- name: Install Coverage Tools
106-
run: dart pub global activate coverage
107-
108-
- name: Format Coverage for Each Package
109-
run: |
110-
for dir in $(find . -name "coverage"); do
111-
$HOME/.pub-cache/bin/format_coverage \
112-
--lcov \
113-
--in=$dir \
114-
--out=$dir/coverage.lcov \
115-
--packages=.packages \
116-
--report-on=lib
117-
done
118-
119-
- name: Combine Coverage
120-
run: |
121-
dart pub global activate combine_coverage
122-
dart pub global run combine_coverage --repo-path="." # Adjust path to your monorepo root
123-
124-
- name: Upload Combined Coverage to Codecov
125-
uses: codecov/codecov-action@v3
126-
with:
127-
files: ./coverage/combined.lcov # Adjust path if necessary
128-
flags: combined_coverage
129-
name: Combined Code Coverage
130-
fail_ci_if_error: true
131-
env:
132-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # Required only for private repos
133-
13488
build:
13589
name: Build example project 🛠️
13690
runs-on: ubuntu-latest

example/pubspec.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ dependencies:
3939
# Use with the CupertinoIcons class for iOS style icons.
4040
cupertino_icons: ^1.0.2
4141

42+
dependency_overrides:
43+
openapi_generator:
44+
path: ../openapi-generator
45+
openapi_generator_annotations:
46+
path: ../openapi-generator-annotations
47+
openapi_generator_cli:
48+
path: ../openapi-generator-cli
49+
4250
dev_dependencies:
4351
flutter_test:
4452
sdk: flutter

melos.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: openapi_generator_dart
22
repository: https://github.com/gibahjoe/openapi-generator-dart
33

44
packages:
5-
- example
65
- openapi-generator
76
- openapi-generator-annotations
87
- openapi-generator-cli
@@ -19,9 +18,7 @@ command:
1918
scripts:
2019
test:all:
2120
run: |
22-
melos run test --no-select && \
23-
melos exec -- "dart pub global activate combine_coverage"
24-
melos run combine_coverage
21+
melos run test --no-select
2522
description: |
2623
Run all tests available.
2724
test:

0 commit comments

Comments
 (0)