-
Notifications
You must be signed in to change notification settings - Fork 59
143 lines (138 loc) · 4.94 KB
/
validate.yaml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
name: all_packages
on:
pull_request:
push:
branches:
- main
jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: 'Install Flutter'
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: 'Install Tools'
run: ./.github/workflows/scripts/install-tools.sh
- name: 'Analyze'
uses: invertase/github-action-dart-analyzer@v1
with:
fatal-infos: true
fatal-warnings: true
format:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: 'Install Flutter'
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: 'Install Tools'
run: ./.github/workflows/scripts/install-tools.sh
- name: 'Dart'
run: |
melos run format
./.github/workflows/scripts/validate-formatting.sh
test_linux:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
name: Install Node.js 16
with:
node-version: '16'
- name: 'Install Flutter'
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: 'Install Tools'
run: |
./.github/workflows/scripts/install-tools.sh
flutter config --enable-linux-desktop
sudo npm i -g firebase-tools
- name: Start Firebase Emulator
run: cd ./.github/workflows/scripts && ./start-firebase-emulator.sh
- name: 'Install Linux Dependencies'
run: |
sudo apt update
sudo apt install -y cmake dbus libblkid-dev libgtk-3-dev liblzma-dev ninja-build pkg-config xvfb clang-format
sudo apt install -y libwebkit2gtk-4.0-dev
sudo apt install -y xvfb
- name: 'Run Tests'
working-directory: tests
run: |
xvfb-run -a flutter drive -d linux --no-pub --target=./test_driver/driver_e2e.dart --dart-define=CI=true
test_windows:
runs-on: windows-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
name: Install Node.js 16
with:
node-version: '16'
- name: 'Install Flutter'
run: .\.github\workflows\scripts\install-flutter.bat stable
- name: 'Install Tools'
run: |
.\.github\workflows\scripts\install-tools.bat
npm i -g firebase-tools
- name: Start Firebase Emulator
run: cd .\.github\workflows\scripts && .\start-firebase-emulator.bat
- name: 'Run Tests'
working-directory: tests
run: cmd /c flutter drive -d windows --no-pub --target=./test_driver/driver_e2e.dart --dart-define=CI=true
# test_macos:
# runs-on: macos-latest
# timeout-minutes: 20
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - uses: actions/setup-node@v2
# name: Install Node.js 12
# with:
# node-version: '12'
# - uses: hendrikmuhs/ccache-action@v1
# name: Xcode Compile Cache
# with:
# key: ${{ runner.os }}-macos-v2
# max-size: 700M
# - uses: actions/cache@v2
# name: Pods Cache
# id: pods-cache
# with:
# path: tests/macos/Pods
# key: ${{ runner.os }}-pods-v2-${{ hashFiles('tests/macos/Podfile.lock') }}
# restore-keys: ${{ runner.os }}-macos-pods-v1
# - name: Cache Firebase Emulator
# uses: actions/cache@v2
# with:
# path: ~/.cache/firebase/emulators
# key: firebase-emulators-v1-${{ github.run_id }}
# restore-keys: firebase-emulators-v1
# - name: 'Install Flutter'
# run: ./.github/workflows/scripts/install-flutter.sh stable
# - name: 'Install Tools'
# run: |
# ./.github/workflows/scripts/install-tools.sh
# flutter config --enable-macos-desktop
# sudo npm i -g firebase-tools
# - name: 'Build Application'
# working-directory: tests
# run: |
# export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
# export CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros
# export CCACHE_FILECLONE=true
# export CCACHE_DEPEND=true
# export CCACHE_INODECACHE=true
# ccache -s
# flutter build macos --debug --target=./test_driver/driver_e2e.dart --device-id=macos --dart-define=CI=true
# ccache -s
# - name: Start Firebase Emulator
# run: cd ./.github/workflows/scripts && ./start-firebase-emulator.sh
# - name: 'Run Tests'
# working-directory: tests
# run: flutter drive -d macos --no-pub --target=./test_driver/driver_e2e.dart --dart-define=CI=true