-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.25 KB
/
Copy pathci.yml
File metadata and controls
49 lines (46 loc) · 1.25 KB
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
name: Reader CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- run: flutter pub get
- run: dart format --output=none --set-exit-if-changed lib test example/lib example/test tool
- run: flutter analyze
- run: flutter test
- run: flutter analyze
working-directory: example
- run: flutter test
working-directory: example
- run: flutter build web
working-directory: example
desktop-build:
strategy:
matrix:
include:
- os: ubuntu-latest
target: linux
- os: windows-latest
target: windows
- os: macos-latest
target: macos
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev
if: matrix.target == 'linux'
- run: flutter pub get
working-directory: example
- run: flutter build ${{ matrix.target }}
working-directory: example