Skip to content

Commit 33d8d2e

Browse files
committed
chore(workflows): fix working directories/paths for project workflows
1 parent f50c475 commit 33d8d2e

30 files changed

+177
-71
lines changed

.github/dependabot.yaml

+21-21
Original file line numberDiff line numberDiff line change
@@ -10,86 +10,86 @@ updates:
1010
schedule:
1111
interval: "daily"
1212
- package-ecosystem: "pub"
13-
directory: "/flutter_instagram_offline_first_clone/packages/app_ui"
13+
directory: "./packages/app_ui"
1414
schedule:
1515
interval: "daily"
1616
- package-ecosystem: "pub"
17-
directory: "/flutter_instagram_offline_first_clone/packages/authentication_client/authentication_client"
17+
directory: "./packages/authentication_client/authentication_client"
1818
schedule:
1919
interval: "daily"
2020
- package-ecosystem: "pub"
21-
directory: "/flutter_instagram_offline_first_clone/packages/authentication_client/supabase_authentication_client"
21+
directory: "./packages/authentication_client/supabase_authentication_client"
2222
schedule:
2323
interval: "daily"
2424
- package-ecosystem: "pub"
25-
directory: "/flutter_instagram_offline_first_clone/packages/authentication_client/token_storage"
25+
directory: "./packages/authentication_client/token_storage"
2626
schedule:
2727
interval: "daily"
2828
- package-ecosystem: "pub"
29-
directory: "/flutter_instagram_offline_first_clone/packages/chats_repository"
29+
directory: "./packages/chats_repository"
3030
schedule:
3131
interval: "daily"
3232
- package-ecosystem: "pub"
33-
directory: "/flutter_instagram_offline_first_clone/packages/database_client"
33+
directory: "./packages/database_client"
3434
schedule:
3535
interval: "daily"
3636
- package-ecosystem: "pub"
37-
directory: "/flutter_instagram_offline_first_clone/packages/env"
37+
directory: "./packages/env"
3838
schedule:
3939
interval: "daily"
4040
- package-ecosystem: "pub"
41-
directory: "/flutter_instagram_offline_first_clone/packages/storage/storage"
41+
directory: "./packages/storage/storage"
4242
schedule:
4343
interval: "daily"
4444
- package-ecosystem: "pub"
45-
directory: "/flutter_instagram_offline_first_clone/packages/storage/secure_storage"
45+
directory: "./packages/storage/secure_storage"
4646
schedule:
4747
interval: "daily"
4848
- package-ecosystem: "pub"
49-
directory: "/flutter_instagram_offline_first_clone/packages/storage/persistent_storage"
49+
directory: "./packages/storage/persistent_storage"
5050
schedule:
5151
interval: "daily"
5252
- package-ecosystem: "pub"
53-
directory: "/flutter_instagram_offline_first_clone/packages/remote_config/firebase_remote_config"
53+
directory: "./packages/remote_config/firebase_remote_config"
5454
schedule:
5555
interval: "daily"
5656
- package-ecosystem: "pub"
57-
directory: "/flutter_instagram_offline_first_clone/packages/insta_blocks"
57+
directory: "./packages/insta_blocks"
5858
schedule:
5959
interval: "daily"
6060
- package-ecosystem: "pub"
61-
directory: "/flutter_instagram_offline_first_clone/packages/instagram_blocks_ui"
61+
directory: "./packages/instagram_blocks_ui"
6262
schedule:
6363
interval: "daily"
6464
- package-ecosystem: "pub"
65-
directory: "/flutter_instagram_offline_first_clone/packages/posts_repository"
65+
directory: "./packages/posts_repository"
6666
schedule:
6767
interval: "daily"
6868
- package-ecosystem: "pub"
69-
directory: "/flutter_instagram_offline_first_clone/packages/powersync_repository"
69+
directory: "./packages/powersync_repository"
7070
schedule:
7171
interval: "daily"
7272
- package-ecosystem: "pub"
73-
directory: "/flutter_instagram_offline_first_clone/packages/user_repository"
73+
directory: "./packages/user_repository"
7474
schedule:
7575
interval: "daily"
7676
- package-ecosystem: "pub"
77-
directory: "/flutter_instagram_offline_first_clone/packages/search_repository"
77+
directory: "./packages/search_repository"
7878
schedule:
7979
interval: "daily"
8080
- package-ecosystem: "pub"
81-
directory: "/flutter_instagram_offline_first_clone/packages/shared"
81+
directory: "./packages/shared"
8282
schedule:
8383
interval: "daily"
8484
- package-ecosystem: "pub"
85-
directory: "/flutter_instagram_offline_first_clone/packages/stories_repository"
85+
directory: "./packages/stories_repository"
8686
schedule:
8787
interval: "daily"
8888
- package-ecosystem: "pub"
89-
directory: "/flutter_instagram_offline_first_clone/packages/notifications_client/firebase_notifications_client"
89+
directory: "./packages/notifications_client/firebase_notifications_client"
9090
schedule:
9191
interval: "daily"
9292
- package-ecosystem: "pub"
93-
directory: "/flutter_instagram_offline_first_clone/packages/user_repository"
93+
directory: "./packages/user_repository"
9494
schedule:
9595
interval: "daily"

.github/workflows/app_ui.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/app_ui/**"
10+
- "./packages/app_ui/**"
1111
- ".github/workflows/app_ui.yaml"
1212
branches:
1313
- main
@@ -17,5 +17,5 @@ jobs:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
1818
with:
1919
flutter_version: 3.16.9
20-
working_directory: flutter_instagram_offline_first_clone/packages/app_ui
20+
working_directory: ./packages/app_ui
2121
coverage_excludes: "lib/src/generated/*.dart"

.github/workflows/authentication_client.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/authentication_client/authentication_client/**"
10+
- "./packages/authentication_client/authentication_client/**"
1111
- ".github/workflows/authentication_client.yaml"
1212
branches:
1313
- main
@@ -17,4 +17,4 @@ jobs:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
1818
with:
1919
flutter_version: 3.16.9
20-
working_directory: flutter_instagram_offline_first_clone/packages/authentication_client/authentication_client
20+
working_directory: ./packages/authentication_client/authentication_client

.github/workflows/chats_repository.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/chats_repository/**"
10+
- "./packages/chats_repository/**"
1111
- ".github/workflows/chats_repository.yaml"
1212
branches:
1313
- main
@@ -17,4 +17,4 @@ jobs:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
1818
with:
1919
dart_sdk: 3.2.6
20-
working_directory: flutter_instagram_offline_first_clone/packages/chats_repository
20+
working_directory: ./packages/chats_repository

.github/workflows/database_client.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/database_client/**"
10+
- "./packages/database_client/**"
1111
- ".github/workflows/database_client.yaml"
1212
branches:
1313
- main
@@ -17,4 +17,4 @@ jobs:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
1818
with:
1919
flutter_version: 3.16.9
20-
working_directory: flutter_instagram_offline_first_clone/packages/database_client
20+
working_directory: ./packages/database_client

.github/workflows/env.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/env/**"
10+
- "./packages/env/**"
1111
- ".github/workflows/env.yaml"
1212
branches:
1313
- main
@@ -18,4 +18,4 @@ jobs:
1818
with:
1919
flutter_version: 3.16.9
2020
coverage_excludes: "**/*.g.dart"
21-
working_directory: flutter_instagram_offline_first_clone/packages/env
21+
working_directory: ./packages/env

.github/workflows/firebase_notifications_client.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/notifications_client/firebase_notifications_client/**"
10+
- "./packages/notifications_client/firebase_notifications_client/**"
1111
- ".github/workflows/firebase_notifications_client.yaml"
1212
branches:
1313
- main
@@ -17,4 +17,4 @@ jobs:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
1818
with:
1919
flutter_version: 3.16.9
20-
working_directory: flutter_instagram_offline_first_clone/packages/notifications_client/firebase_notifications_client
20+
working_directory: ./packages/notifications_client/firebase_notifications_client

.github/workflows/firebase_remote_config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/remote_config/firebase_remote_config/**"
10+
- "./packages/remote_config/firebase_remote_config/**"
1111
- ".github/workflows/firebase_remote_config.yaml"
1212
branches:
1313
- main
@@ -17,4 +17,4 @@ jobs:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
1818
with:
1919
flutter_version: 3.16.9
20-
working_directory: flutter_instagram_offline_first_clone/packages/remote_config/firebase_remote_config
20+
working_directory: ./packages/remote_config/firebase_remote_config

.github/workflows/flutter_instagram_offline_first_clone.yaml

+12-8
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ on:
99
- cron: "0 0 * * *"
1010
pull_request:
1111
paths:
12-
- "flutter_instagram_offline_first_clone/lib/**"
13-
- "flutter_instagram_offline_first_clone/test/**"
14-
- "flutter_instagram_offline_first_clone/packages/**"
15-
- "flutter_instagram_offline_first_clone/pubspec.yaml"
12+
- "./lib/**"
13+
- "./test/**"
14+
- "./packages/**"
15+
- "./pubspec.yaml"
1616
- ".github/workflows/flutter_instagram_offline_first_clone.yaml"
1717
branches:
1818
- main
@@ -21,7 +21,7 @@ jobs:
2121
build:
2222
defaults:
2323
run:
24-
working-directory: flutter_instagram_offline_first_clone
24+
working-directory: /
2525

2626
runs-on: ubuntu-latest
2727

@@ -56,8 +56,12 @@ jobs:
5656
- name: Run tests
5757
run: very_good test -x presubmit-only --coverage --test-randomize-ordering-seed random
5858

59-
- name: Check Code Coverage
59+
- name: Check for existing and non-empty coverage file
60+
id: test_coverage_file
61+
run: if [ -s "/coverage/lcov.info" ]; then echo "result=true" >> $GITHUB_OUTPUT ; else echo "result=false" >> $GITHUB_OUTPUT; fi
62+
63+
- name: Very Good Coverage
64+
if: steps.test_coverage_file.outputs.result == 'true'
6065
uses: VeryGoodOpenSource/very_good_coverage@v2
6166
with:
62-
exclude: "**/*.g.dart **/*.gen.dart **/l10n/*.dart **/l10n/**/*.dart **/main/bootstrap.dart"
63-
path: flutter_instagram_offline_first_clone/coverage/lcov.info
67+
path: '/coverage/lcov.info'

.github/workflows/insta_blocks.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/insta_blocks/**"
10+
- "./packages/insta_blocks/**"
1111
- ".github/workflows/insta_blocks.yaml"
1212
branches:
1313
- main
@@ -18,4 +18,4 @@ jobs:
1818
with:
1919
flutter_version: 3.16.9
2020
coverage_excludes: "**/*.g.dart"
21-
working_directory: flutter_instagram_offline_first_clone/packages/insta_blocks
21+
working_directory: ./packages/insta_blocks

.github/workflows/instagram_blocks_ui.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/instagram_blocks_ui/**"
10+
- "./packages/instagram_blocks_ui/**"
1111
- ".github/workflows/instagram_blocks_ui.yaml"
1212
branches:
1313
- main
@@ -17,4 +17,4 @@ jobs:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
1818
with:
1919
flutter_version: 3.16.9
20-
working_directory: flutter_instagram_offline_first_clone/packages/instagram_blocks_ui
20+
working_directory: ./packages/instagram_blocks_ui

.github/workflows/persistent_storage.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/storage/persistent_storage/**"
10+
- "./packages/storage/persistent_storage/**"
1111
- ".github/workflows/persistent_storage.yaml"
1212
branches:
1313
- main
@@ -17,4 +17,4 @@ jobs:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
1818
with:
1919
flutter_version: 3.16.9
20-
working_directory: flutter_instagram_offline_first_clone/packages/storage/persistent_storage
20+
working_directory: ./packages/storage/persistent_storage

.github/workflows/posts_repository.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/posts_repository/**"
10+
- "./packages/posts_repository/**"
1111
- ".github/workflows/posts_repository.yaml"
1212
branches:
1313
- main
@@ -17,4 +17,4 @@ jobs:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
1818
with:
1919
flutter_version: 3.16.9
20-
working_directory: flutter_instagram_offline_first_clone/packages/posts_repository
20+
working_directory: ./packages/posts_repository

.github/workflows/powersync_repository.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/powersync_repository/**"
10+
- "./packages/powersync_repository/**"
1111
- ".github/workflows/powersync_repository.yaml"
1212
branches:
1313
- main
@@ -17,4 +17,4 @@ jobs:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
1818
with:
1919
flutter_version: 3.16.9
20-
working_directory: flutter_instagram_offline_first_clone/packages/powersync_repository
20+
working_directory: ./packages/powersync_repository

.github/workflows/search_repository.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/search_repository/**"
10+
- "./packages/search_repository/**"
1111
- ".github/workflows/search_repository.yaml"
1212
branches:
1313
- main
@@ -17,4 +17,4 @@ jobs:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
1818
with:
1919
dart_sdk: 3.2.6
20-
working_directory: flutter_instagram_offline_first_clone/packages/search_repository
20+
working_directory: ./packages/search_repository

.github/workflows/secure_storage.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ concurrency:
77
on:
88
pull_request:
99
paths:
10-
- "flutter_instagram_offline_first_clone/packages/storage/secure_storage/**"
10+
- "./packages/storage/secure_storage/**"
1111
- ".github/workflows/secure_storage.yaml"
1212
branches:
1313
- main
@@ -17,4 +17,4 @@ jobs:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
1818
with:
1919
flutter_version: 3.16.9
20-
working_directory: flutter_instagram_offline_first_clone/packages/storage/secure_storage
20+
working_directory: ./packages/storage/secure_storage

0 commit comments

Comments
 (0)