-
-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (37 loc) · 1.04 KB
/
lint_test_build.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Linting, Testing and Building
on:
push:
branches-ignore:
- "dev"
- "main"
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:'
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:arch:'
- name: Install Flutter Packages
run: flutter pub get
- name: Analyze Project
run: dart analyze --fatal-warnings
- name: Run Tests
run: flutter test
- name: Install CocoaPods
run: cd ./ios && pod install
- name: Install Java SDK
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: Build iOS
run: flutter build ipa --no-codesign
- name: Build Android
run: flutter build apk
- name: Build Website
run: flutter build web --base-href /