-
Notifications
You must be signed in to change notification settings - Fork 228
45 lines (35 loc) · 1.29 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
# - name: Clone Flutter SDK
# # We can't do a depth-1 clone, because we need the most recent tag
# # so that Flutter knows its version and sees the constraint in our
# # pubspec is satisfied. It's uncommon for flutter/flutter to go
# # more than 100 commits between tags. Fetch 1000 for good measure.
# run: |
# git clone --depth=1000 https://github.com/flutter/flutter ~/flutter
# TZ=UTC git --git-dir ~/flutter/.git log -1 --format='%h | %ci | %s' --date=iso8601-local
# echo ~/flutter/bin >> "$GITHUB_PATH"
- name: Install FVM
run: |
brew tap leoafarias/fvm
brew install fvm
- name: Install Flutter SDK
run: |
fvm install
fvm use
- name: Load direnv (.envrc)
uses: HatsuneMiku3939/direnv-action@v1
- name: Download Flutter SDK artifacts (flutter precache)
run: flutter precache --universal
- name: Download our dependencies (flutter pub get)
run: flutter pub get
- name: Run tools/check
run: TERM=dumb tools/check --all --verbose