-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (31 loc) · 909 Bytes
/
check.yml
File metadata and controls
42 lines (31 loc) · 909 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
36
37
38
39
40
41
42
name: Flutter CI
on: [ push, pull_request ]
jobs:
lint-test-build:
name: Lint, Test, and Build
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
cache: true
channel: stable
flutter-version-file: pubspec.yaml
- name: Install dependencies
run: flutter pub get
- name: Analyze project source
run: flutter analyze
- name: Run tests
run: flutter test
- name: Build Windows release
run: flutter build windows --release
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: windows-release
path: build/windows/x64/runner/Release
overwrite: true
compression-level: 9
retention-days: 90