Skip to content

Commit 6e577de

Browse files
authored
Add CI (#9)
1 parent d1de938 commit 6e577de

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
env:
13+
FLUTTER_VERSION: 3.24.3
14+
15+
jobs:
16+
analyze-latest:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: subosito/flutter-action@v2
21+
- uses: bluefireteam/melos-action@v3
22+
- uses: invertase/github-action-dart-analyzer@v3
23+
with:
24+
fatal-infos: true
25+
26+
format:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: subosito/flutter-action@v2
31+
- uses: bluefireteam/melos-action@v3
32+
- run: melos run format-check

melos.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ name: sane_workspace
22

33
packages:
44
- packages/**
5+
6+
scripts:
7+
format-check: melos exec dart format . --set-exit-if-changed

0 commit comments

Comments
 (0)