-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (33 loc) · 858 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
name: Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
env:
CI_FLUTTER_VERSION: '3.27.1'
jobs:
flutter_test:
name: Flutter test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{env.CI_FLUTTER_VERSION}}
cache: true
- run: |
sudo apt update -y
sudo apt install -y ninja-build libgtk-3-dev sqlite3 libsqlite3-dev
- name: Precompile
run: |
git submodule update --init --recursive --force
flutter pub get
dart ./Makefile.dart
- name: Run flutter analyze
run: |
flutter analyze --fatal-infos --fatal-warnings lib
- name: Run flutter test
run: |
flutter test