Skip to content

Commit a2b3a8f

Browse files
author
Christoph Bühler
committed
chore: use dart instead of flutter for core
1 parent 2744b8f commit a2b3a8f

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
- uses: actions/checkout@v3
1515
with:
1616
token: ${{ secrets.REPO_DEPLOYMENT_TOKEN }}
17-
- uses: subosito/flutter-action@v2
17+
- uses: dart-lang/setup-dart@v1
1818
with:
19-
channel: 'stable'
20-
- run: flutter pub get
19+
sdk: stable
20+
- run: dart pub get
2121
- name: release
2222
uses: cycjimmy/semantic-release-action@v3
2323
with:

.github/workflows/test.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15+
- uses: dart-lang/setup-dart@v1
1516
with:
16-
submodules: true
17-
- uses: subosito/flutter-action@v2
18-
with:
19-
channel: 'stable'
20-
- run: flutter pub get
17+
sdk: stable
18+
- run: dart pub get
2119
- run: dart format --fix --set-exit-if-changed .
22-
- run: flutter analyze
23-
- run: flutter test --coverage
20+
- run: dart analyze
21+
- run: dart test --coverage
2422
- name: Setup LCOV
2523
uses: hrishikesh-kadam/setup-lcov@v1
2624
- name: Report code coverage

.releaserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{
1717
"verifyConditionsCmd": "if [ -z \"$CREDENTIALS\" ]; then exit 1; fi && mkdir -p ~/.config/dart && echo \"$CREDENTIALS\" > ~/.config/dart/pub-credentials.json",
1818
"prepareCmd": "sed -i 's/^version: .*$/version: ${nextRelease.version}/' pubspec.yaml",
19-
"publishCmd": "flutter pub publish -f"
19+
"publishCmd": "dart pub publish -f"
2020
}
2121
],
2222
[

test/stacked_core_test.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import 'package:test/test.dart';
22

33
void main() {
4-
group('A group of tests', () {});
4+
group('A group of tests', () {
5+
test('True', () {});
6+
});
57
}

0 commit comments

Comments
 (0)