Skip to content

Commit 8ac0b5f

Browse files
committed
[#1] GitHub Actions CI 설정 추가
1 parent 699fbf2 commit 8ac0b5f

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/flutter_ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Flutter CI
2+
3+
on:
4+
push:
5+
branches: [main] # GitFlow 기준: develop 브랜치에 push / 수정 예정
6+
pull_request:
7+
branches: [main] # 또는 PR이 develop으로 향할 때 / 수정 예정
8+
9+
jobs:
10+
build:
11+
name: Analyze, Test and Build
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Set up Flutter
19+
uses: subosito/flutter-action@v2
20+
with:
21+
flutter-version: '3.32.6'
22+
23+
- name: Install dependencies
24+
run: flutter pub get
25+
26+
- name: Analyze code
27+
run: flutter analyze
28+
29+
- name: Run tests
30+
run: flutter test
31+
32+
- name: Build APK (debug)
33+
run: flutter build apk --debug

0 commit comments

Comments
 (0)