forked from ubuntu/app-center
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.37 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
name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
coverage:
name: test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.10.x"
- run: flutter test --coverage
- uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
integration:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.10.x"
- run: sudo apt update
- run: sudo apt install -y clang cmake libblkid-dev libglib2.0-dev libgtk-3-dev liblzma-dev network-manager ninja-build packagekit pkg-config polkitd xfce4-notifyd xvfb
- run: sudo cp integration_test/assets/10-network-manager.yaml /etc/netplan/
- run: sudo netplan apply
- run: sudo cp integration_test/assets/packagekit-ci.pkla /var/lib/polkit-1/localauthority/50-local.d/
- run: sudo cp integration_test/assets/network-manager-ci.pkla /var/lib/polkit-1/localauthority/50-local.d/
- run: sudo cp integration_test/assets/snapd-ci.pkla /var/lib/polkit-1/localauthority/50-local.d/
- run: LANG=en_US.UTF-8 xvfb-run -a -s '-screen 0 1024x768x24 +extension GLX' flutter test integration_test