-
-
Notifications
You must be signed in to change notification settings - Fork 28
48 lines (40 loc) · 1.17 KB
/
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
45
46
47
48
name: Test
on:
push:
branches:
- dev
- main
pull_request:
workflow_dispatch:
env:
FLUTTER_VERSION: "3.10.6"
jobs:
test:
name: Test on linux
runs-on: ubuntu-latest
steps:
- uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
cache-key: flutter-ubuntu-latest-linux-${{ env.FLUTTER_VERSION }}
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libx11-dev pkg-config cmake ninja-build libblkid-dev
sudo apt-get install -y libayatana-appindicator3-dev
- name: flutter doctor
run: |
flutter config --enable-linux-desktop
flutter doctor -v
- name: Checkout chaldea code
uses: actions/checkout@v3
- name: Checkout chaldea data
uses: actions/checkout@v3
with:
repository: chaldea-center/chaldea-data
path: data/
- run: mv data/dist data/game
- run: flutter pub get
- run: flutter test -d linux --dart-define=APP_PATH=$GITHUB_WORKSPACE/data/