-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 904 Bytes
/
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:
types: [opened, synchronize]
push:
branches:
- master
env:
FLUTTER_VERSION: '3.24.0'
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache Flutter dependencies
uses: actions/cache@v3
with:
path: /opt/hostedtoolcache/flutter
key: ${{ runner.OS }}-flutter-install-cache-${{ env.FLUTTER_VERSION }}
- name: Install Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
- name: Install dependencies
run: |
flutter pub get
- name: Prepare client ID
run: |
cp lib/client_id.dart.orig lib/client_id.dart
- name: Test
run: |
flutter test