-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (39 loc) · 1.01 KB
/
test.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
name: Test
on:
workflow_dispatch:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "11"
- name: cache flutter
uses: actions/cache@v4
with:
key: ${{ runner.os }}-${{ hashFiles('**/.fvm/fvm_config.json') }}
path: .fvm/cache
- name: add brew to $PATH
run: |
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
- name: fvm install
run: |
brew tap leoafarias/fvm
brew install fvm
- name: flutter install
run: |
fvm config --cache-path .fvm/cache
fvm install
- name: flutter test
run: |
fvm flutter test --platform chrome