Skip to content

Commit cf1e2c7

Browse files
committed
💚 split test and quality checks into separate workflows
1 parent 3b1848a commit cf1e2c7

File tree

2 files changed

+38
-7
lines changed

2 files changed

+38
-7
lines changed

.github/workflows/quality.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tests
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- '**/*.dart'
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- '**/*.dart'
15+
16+
jobs:
17+
test:
18+
name: Analyze
19+
runs-on: blacksmith-4vcpu-ubuntu-2404
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Install Flutter
23+
uses: subosito/flutter-action@v2
24+
with:
25+
channel: stable
26+
- name: Pub Get
27+
run: dart pub get
28+
29+
- name: Check formatting
30+
run: dart format --set-exit-if-changed .
31+
32+
- name: Lint
33+
run: dart analyze . --fatal-infos

.github/workflows/test.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- '**/*.dart'
810
pull_request:
911
branches:
1012
- main
13+
paths:
14+
- '**/*.dart'
1115

1216
jobs:
1317
test:
14-
name: Analyze and Test
18+
name: Test
1519
runs-on: blacksmith-4vcpu-ubuntu-2404
1620
steps:
1721
- uses: actions/checkout@v4
@@ -22,12 +26,6 @@ jobs:
2226
- name: Pub Get
2327
run: dart pub get
2428

25-
- name: Check formatting
26-
run: dart format --set-exit-if-changed .
27-
28-
- name: Lint
29-
run: dart analyze . --fatal-infos
30-
3129
- name: Run Main Tests
3230
working-directory: ./packages/hyper_storage
3331
run: |

0 commit comments

Comments
 (0)