Skip to content

Commit e7fb6ae

Browse files
ci: separate dart workflow with path filters
- Create ci-dart.yml for Dart packages with paths filter - Remove test-dart job from ci.yml - Dart workflow only triggers on saju-dart or pubspec.yaml changes Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
1 parent cb93655 commit e7fb6ae

2 files changed

Lines changed: 38 additions & 24 deletions

File tree

.github/workflows/ci-dart.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI (Dart)
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
paths:
7+
- 'packages/saju-dart/**'
8+
- '**/pubspec.yaml'
9+
pull_request:
10+
branches: [main, develop]
11+
paths:
12+
- 'packages/saju-dart/**'
13+
- '**/pubspec.yaml'
14+
15+
jobs:
16+
test-dart:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Flutter
23+
uses: subosito/flutter-action@v2
24+
with:
25+
channel: stable
26+
27+
- name: Test Dart packages
28+
run: |
29+
for dir in packages/*-dart; do
30+
if [ -d "$dir" ]; then
31+
echo "Testing $dir..."
32+
cd "$dir"
33+
flutter pub get
34+
dart analyze
35+
dart test
36+
cd -
37+
fi
38+
done

.github/workflows/ci.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,3 @@ jobs:
3131

3232
- name: Test all packages
3333
run: bun run --filter './packages/*' test
34-
35-
test-dart:
36-
runs-on: ubuntu-latest
37-
steps:
38-
- name: Checkout
39-
uses: actions/checkout@v4
40-
41-
- name: Setup Flutter
42-
uses: subosito/flutter-action@v2
43-
with:
44-
channel: stable
45-
46-
- name: Test Dart packages
47-
run: |
48-
for dir in packages/*-dart; do
49-
if [ -d "$dir" ]; then
50-
echo "Testing $dir..."
51-
cd "$dir"
52-
flutter pub get
53-
dart analyze
54-
dart test
55-
cd -
56-
fi
57-
done

0 commit comments

Comments
 (0)