-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 772 Bytes
/
Copy pathmain.yml
File metadata and controls
35 lines (28 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.x'
channel: 'stable'
- name: Create secrets.dart from example (CI placeholder)
run: |
if [ ! -f lib/secrets.dart ]; then
cp lib/secrets.dart.example lib/secrets.dart
fi
- run: flutter pub get
# Catches lint warnings + type errors that the test runner doesn't surface.
- run: flutter analyze
- run: flutter test
- run: flutter build web