-
Notifications
You must be signed in to change notification settings - Fork 240
43 lines (35 loc) · 1.04 KB
/
main.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
name: Test
on:
push:
branches:
- main
jobs:
test:
name: Test on Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Flutter
uses: actions/cache@v3
env:
cache-name: cache-flutter
with:
# Flutter cache files are stored in `~/.flutter` on Linux/macOS
path: /opt/hostedtoolcache/flutter
key: ${{ runner.os }}-build-${{ env.cache-name }}
- name: Install flutter
uses: subosito/[email protected]
with:
channel: 'stable'
- name: Get platform interface dependencies
run: flutter pub get
working-directory: speech_to_text_platform_interface
- name: Run platform interface tests
run: flutter test
working-directory: speech_to_text_platform_interface
- name: Get plugin dependencies
run: flutter pub get
working-directory: speech_to_text
- name: Run plugin tests
run: flutter test
working-directory: speech_to_text