Skip to content

Commit 4c96a1a

Browse files
committed
Add test CI
1 parent 98643a9 commit 4c96a1a

File tree

4 files changed

+21
-12
lines changed

4 files changed

+21
-12
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ jobs:
2929
- uses: subosito/flutter-action@v2
3030
- uses: bluefireteam/melos-action@v3
3131
- run: melos run format-check
32+
33+
test:
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: subosito/flutter-action@v2
38+
- uses: bluefireteam/melos-action@v3
39+
- run: melos run test

melos.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ packages:
44
- packages/**
55

66
scripts:
7-
format-check: melos exec dart format . --set-exit-if-changed
7+
format-check:
8+
run: melos exec dart format . --set-exit-if-changed
9+
description: "Run dart format in all packages"
10+
test:
11+
run: melos exec dart test .
12+
description: "Run dart test in all packages"

packages/sane/test/sane_backend_test.dart

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/sane/test/sane_test.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import 'package:test/test.dart';
2+
3+
void main() {
4+
group('Void group of tests', () {
5+
test('Void test', () {});
6+
});
7+
}

0 commit comments

Comments
 (0)