-
Notifications
You must be signed in to change notification settings - Fork 66
33 lines (31 loc) · 967 Bytes
/
main.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
name: Build, Test and Analyze
on: [push, pull_request]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/[email protected]
with:
flutter-version: "3.10.5"
channel: "stable"
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:"
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"
architecture: x64 # optional, x64 or arm64
- name: Setup
run: |
make get
- name: Static Analysis
run: make lint
- name: Unit Tests
run: melos run test:unit
- name: Widget Tests
run: melos run test:widget
- name: Build release package
run: flutter build apk --release
- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: apk
path: |
build/app/outputs/flutter-apk/app-release.apk