Skip to content

Commit

Permalink
Use pubspec_overrides and improve workflows (cfug#61)
Browse files Browse the repository at this point in the history
`pubspec_overrides` helps during development and doesn't interfere with publishing.
  • Loading branch information
kuhnroyal authored Jan 9, 2023
1 parent be94d17 commit 2b7aa3b
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3
- name: Publish
uses: k-paxian/dart-package-publisher@master
with:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ jobs:
chmod +x ./scripts/prepare_pinning_certs.sh
./scripts/prepare_pinning_certs.sh
shell: bash
- run: cd "dio" && dart pub get
- run: cd "dio" && dart test --chain-stack-traces --platform=${{ matrix.platform }}
- run: dart pub get
working-directory: dio
- run: dart test --chain-stack-traces --platform=${{ matrix.platform }}
working-directory: dio

test_plugins:
needs: [analyze, analyze_flutter]
Expand All @@ -114,8 +116,10 @@ jobs:
chmod +x ./scripts/prepare_pinning_certs.sh
./scripts/prepare_pinning_certs.sh
shell: bash
- run: cd ${{ matrix.directory }} && dart pub get
- run: cd ${{ matrix.directory }} && dart test --chain-stack-traces
- run: dart pub get
working-directory: ${{ matrix.directory }}
- run: dart test --chain-stack-traces
working-directory: ${{ matrix.directory }}

test_flutter_plugins:
needs: [analyze, analyze_flutter]
Expand Down
4 changes: 0 additions & 4 deletions plugins/cookie_manager/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@ dependencies:
dev_dependencies:
lints: any
test: ^1.16.4

#dependency_overrides:
# diox:
# path: ../../dio
3 changes: 3 additions & 0 deletions plugins/cookie_manager/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependency_overrides:
diox:
path: ../../dio
4 changes: 0 additions & 4 deletions plugins/http2_adapter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,3 @@ dev_dependencies:
crypto: ^3.0.2
lints: any
test: ^1.16.4

#dependency_overrides:
# diox:
# path: ../../dio
3 changes: 3 additions & 0 deletions plugins/http2_adapter/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependency_overrides:
diox:
path: ../../dio
3 changes: 3 additions & 0 deletions plugins/native_diox_adapter/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependency_overrides:
diox:
path: ../../dio

0 comments on commit 2b7aa3b

Please sign in to comment.