Skip to content

Commit 4637546

Browse files
dart version bugfix (#4)
1 parent e3fcc02 commit 4637546

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

.github/workflows/on-pr-push-code-check.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727

2828
- name: Setup dart
2929
uses: dart-lang/setup-dart@v1
30+
with:
31+
# https://github.com/invertase/dart_edge/issues/50
32+
sdk: 3.0.0
3033

3134
- name: Get main dependencies
3235
run: dart pub get
@@ -40,12 +43,14 @@ jobs:
4043
with:
4144
fatal-infos: true
4245

43-
- name: Dart Code Metrics
44-
uses: solid-software/dart-code-metrics-action@v5
45-
with:
46-
github_token: ${{ secrets.GITHUB_TOKEN }}
47-
fatal_warnings: true
48-
fatal_style: true
46+
# https://github.com/invertase/dart_edge/issues/50
47+
# dcm action uses stable, which is >=3.1 already, so it doesn't work
48+
# - name: Dart Code Metrics
49+
# uses: solid-software/dart-code-metrics-action@v5
50+
# with:
51+
# github_token: ${{ secrets.GITHUB_TOKEN }}
52+
# fatal_warnings: true
53+
# fatal_style: true
4954

5055
- name: Check formatting
5156
run: dart format . --set-exit-if-changed

example/pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ version: 1.0.0
44
publish_to: none
55

66
environment:
7-
sdk: ^3.0.0
7+
# https://github.com/invertase/dart_edge/issues/50
8+
# Tested with 3.0.6, but others should work too
9+
sdk: '>=3.0.0 <3.1.0'
810

911
dependencies:
1012
deno_postgres_interop:

pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ version: 0.0.1
44
repository: https://github.com/solid-software/deno_postgres_interop
55

66
environment:
7-
sdk: ^3.0.0
7+
# https://github.com/invertase/dart_edge/issues/50
8+
# Tested with 3.0.6, but others should work too
9+
sdk: '>=3.0.0 <3.1.0'
810

911
dev_dependencies:
1012
solid_lints: 0.0.19

tools/add_imports/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: add_imports.
33
version: 1.0.0
44

55
environment:
6-
sdk: ^3.1.0
6+
sdk: ^3.0.0
77

88
dependencies:
99
args: ^2.4.2

0 commit comments

Comments
 (0)