-
Notifications
You must be signed in to change notification settings - Fork 16
59 lines (48 loc) · 1.32 KB
/
Copy pathci.yml
File metadata and controls
59 lines (48 loc) · 1.32 KB
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
50
51
52
53
54
55
56
57
58
59
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
validate:
runs-on: windows-latest
env:
FVM_HOME: ${{ github.workspace }}/.fvm_cache
PUB_CACHE: ${{ github.workspace }}/.pub-cache
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Cache Pub Packages
uses: actions/cache@v4
with:
path: .pub-cache
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pub-
- name: Cache FVM SDK
uses: actions/cache@v4
with:
path: .fvm_cache
key: ${{ runner.os }}-fvm-${{ hashFiles('.fvmrc') }}
restore-keys: |
${{ runner.os }}-fvm-
- name: Add Pub Cache To PATH
shell: pwsh
run: |
"$env:PUB_CACHE\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install FVM
shell: pwsh
run: dart pub global activate fvm
- name: Install Flutter SDK
shell: pwsh
run: fvm install
- name: Get Dependencies
shell: pwsh
run: fvm flutter pub get
- name: Analyze
shell: pwsh
run: fvm flutter analyze --no-fatal-infos
- name: Run Tests
shell: pwsh
run: fvm flutter test