Skip to content

Commit 92cd64b

Browse files
add CI build configuration for Weather App
1 parent 5f8a565 commit 92cd64b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Ci
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
name: Build Weather App
11+
runs-on: "ubuntu-latest"
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Java
18+
uses: actions/setup-java@v4
19+
with:
20+
distribution: 'temurin'
21+
java-version: '17'
22+
23+
- name: Set up Flutter
24+
uses: subosito/flutter-action@v2
25+
with:
26+
channel: 'stable'
27+
flutter-version: '3.35.6'
28+
29+
- name: Install dependencies
30+
run: flutter pub get
31+
32+
- name: Analyze project
33+
run: flutter analyze
34+
35+
- name: Run tests (even if empty)
36+
run: flutter test

0 commit comments

Comments
 (0)