-
-
Notifications
You must be signed in to change notification settings - Fork 18
44 lines (35 loc) · 1009 Bytes
/
tests.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: Run tests
on:
# Allow being called by other workflows
workflow_call:
# Allow being called manually
workflow_dispatch:
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- name: Get Linux dependencies
if: runner.os == 'Linux'
shell: bash
run: |
sudo apt-get update -y
sudo apt-get install -y wmctrl xdotool
- name: Setup
run: |
flutter pub get
- name: Verify formatting
run: dart format -o none --set-exit-if-changed --line-length=90 .
- name: Run code generation
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Run i18n generation
run: flutter gen-l10n
- name: Run lint
run: flutter analyze
- name: Run tests
run: flutter test