Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 2b7aa3b

Browse files
authored
Use pubspec_overrides and improve workflows (#61)
`pubspec_overrides` helps during development and doesn't interfere with publishing.
1 parent be94d17 commit 2b7aa3b

7 files changed

Lines changed: 18 additions & 13 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v1
24+
uses: actions/checkout@v3
2525
- name: Publish
2626
uses: k-paxian/dart-package-publisher@master
2727
with:

.github/workflows/tests.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ jobs:
9393
chmod +x ./scripts/prepare_pinning_certs.sh
9494
./scripts/prepare_pinning_certs.sh
9595
shell: bash
96-
- run: cd "dio" && dart pub get
97-
- run: cd "dio" && dart test --chain-stack-traces --platform=${{ matrix.platform }}
96+
- run: dart pub get
97+
working-directory: dio
98+
- run: dart test --chain-stack-traces --platform=${{ matrix.platform }}
99+
working-directory: dio
98100

99101
test_plugins:
100102
needs: [analyze, analyze_flutter]
@@ -114,8 +116,10 @@ jobs:
114116
chmod +x ./scripts/prepare_pinning_certs.sh
115117
./scripts/prepare_pinning_certs.sh
116118
shell: bash
117-
- run: cd ${{ matrix.directory }} && dart pub get
118-
- run: cd ${{ matrix.directory }} && dart test --chain-stack-traces
119+
- run: dart pub get
120+
working-directory: ${{ matrix.directory }}
121+
- run: dart test --chain-stack-traces
122+
working-directory: ${{ matrix.directory }}
119123

120124
test_flutter_plugins:
121125
needs: [analyze, analyze_flutter]

plugins/cookie_manager/pubspec.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,3 @@ dependencies:
1515
dev_dependencies:
1616
lints: any
1717
test: ^1.16.4
18-
19-
#dependency_overrides:
20-
# diox:
21-
# path: ../../dio
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dependency_overrides:
2+
diox:
3+
path: ../../dio

plugins/http2_adapter/pubspec.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,3 @@ dev_dependencies:
1616
crypto: ^3.0.2
1717
lints: any
1818
test: ^1.16.4
19-
20-
#dependency_overrides:
21-
# diox:
22-
# path: ../../dio
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dependency_overrides:
2+
diox:
3+
path: ../../dio
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dependency_overrides:
2+
diox:
3+
path: ../../dio

0 commit comments

Comments
 (0)