-
-
Notifications
You must be signed in to change notification settings - Fork 29
67 lines (58 loc) · 1.65 KB
/
integration-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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: integration-tests
on:
push:
branches:
- main
- release/**
pull_request:
jobs:
integration-test:
name: ${{ matrix.target }}
runs-on: ${{ matrix.host }}-latest
strategy:
fail-fast: false
matrix:
include:
- host: macos
target: macos
- host: macos
target: macos-framework
- host: macos
target: ios
- host: macos
target: ios-framework
- host: macos
target: ipa
- host: ubuntu
target: linux
- host: ubuntu
target: web
- host: ubuntu
target: apk
- host: ubuntu
target: appbundle
- host: windows
target: windows
env:
TEST_PLATFORM: ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@74af56c5ed2697ba4621264652728e8d217e53d3 #2.17.0
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- run: sudo apt-get install ninja-build libgtk-3-dev
if: runner.os == 'Linux'
- run: (flutter --version)[0] | Out-File flutter.version
shell: pwsh
- uses: actions/cache@v4
with:
path: temp/testapp-${{ matrix.target }}
key: integration-test-${{ matrix.host }}-${{ matrix.target }}-${{ hashFiles('flutter.version') }}
- run: dart test --tags integration
- uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ matrix.target }}-build
path: temp/testapp-${{ matrix.target }}/build