-
-
Notifications
You must be signed in to change notification settings - Fork 65
73 lines (63 loc) · 1.8 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Tests
on:
push:
branches:
- master
pull_request:
types:
- opened
- reopened
jobs:
# JOB to run change detection
changes:
name: Detect changed files
runs-on: ubuntu-latest
# Set job outputs to values from filter step
outputs:
integration_testing: ${{ steps.filter.outputs.integration_testing }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
integration_testing:
- 'lib/**'
- 'packages/**'
- 'pubspec.yaml'
integration_testing:
needs: changes
if: ${{ needs.changes.outputs.integration_testing == 'true' }}
name: Integration testing
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install missing packages
run: |
sudo apt update
sudo apt install -y clang cmake ninja-build pkg-config libgtk-3-dev
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
cache: true
channel: stable
- name: Flutter doctor
run: flutter doctor --verbose
- name: Install required dart tools
run: |
dart pub global activate melos
dart pub global activate vector_graphics_compiler
- name: Bootstrap
run: melos bootstrap
- name: Run large display integration testing
run: |
export DISPLAY=:99
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
flutter test integration_test/large_display_test.dart -d linux
- name: Run small display integration testing
run: |
export DISPLAY=:99
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
flutter test integration_test/small_display_test.dart -d linux