Skip to content

Commit b990e53

Browse files
chrisirhcgnprice
authored andcommitted
check: add flutter-main check
The `check-flutter-main` job serves 2 purposes: 1. It checks that the code works with the flutter's latest main channel. 2. It checks that our code environment setup works with a typical Flutter SDK installation setup (via ~/flutter).
1 parent 81363a8 commit b990e53

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci-flutter-main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# The `check-flutter-main` job serves 2 purposes:
2+
# 1. It checks that the code works with the flutter's latest main
3+
# channel.
4+
# 2. It checks that tools/check and our related scripts don't embed
5+
# any hidden assumptions that the Flutter SDK lives at vendor/flutter/.
6+
name: CI
7+
8+
on: push
9+
10+
jobs:
11+
check-flutter-main:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Clone Flutter SDK
17+
# We can't do a depth-1 clone, because we need the most recent tag
18+
# so that Flutter knows its version and sees the constraint in our
19+
# pubspec is satisfied. It's uncommon for flutter/flutter to go
20+
# more than 100 commits between tags. Fetch 1000 for good measure.
21+
run: |
22+
git clone --depth=1000 https://github.com/flutter/flutter ~/flutter
23+
TZ=UTC git --git-dir ~/flutter/.git log -1 --format='%h | %ci | %s' --date=iso8601-local
24+
echo ~/flutter/bin >> "$GITHUB_PATH"
25+
26+
- name: Download Flutter SDK artifacts (flutter precache)
27+
run: flutter precache --universal
28+
29+
- name: Download our dependencies (flutter pub get)
30+
run: flutter pub get
31+
32+
- name: Run tools/check
33+
run: TERM=dumb tools/check --all --verbose

0 commit comments

Comments
 (0)