Skip to content

Commit d50c9b3

Browse files
committed
Rework test workflows
1 parent e244712 commit d50c9b3

File tree

5 files changed

+108
-36
lines changed

5 files changed

+108
-36
lines changed

.github/workflows/flutter-linux.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Flutter SDK for Linux
2+
3+
on:
4+
push:
5+
branches: [main, v*]
6+
pull_request:
7+
branches: [main, v*]
8+
schedule:
9+
# https://crontab.guru/#40_10_*_*_*
10+
- cron: '40 10 * * *'
11+
workflow_dispatch:
12+
13+
jobs:
14+
run:
15+
uses: ./.github/workflows/flutter.yml
16+
strategy:
17+
matrix:
18+
version:
19+
- latest
20+
- 3.0.0
21+
with:
22+
runs-on: ubuntu-latest
23+
version: ${{ matrix.version }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Flutter SDK for macOS (Intel)
2+
3+
on:
4+
push:
5+
branches: [main, v*]
6+
pull_request:
7+
branches: [main, v*]
8+
schedule:
9+
# https://crontab.guru/#40_10_*_*_*
10+
- cron: '40 10 * * *'
11+
workflow_dispatch:
12+
13+
jobs:
14+
run:
15+
uses: ./.github/workflows/flutter.yml
16+
strategy:
17+
matrix:
18+
version:
19+
- latest
20+
- 3.0.0
21+
with:
22+
runs-on: macos-13 # Intel Mac
23+
version: ${{ matrix.version }}

.github/workflows/flutter-macos.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Flutter SDK for macOS
2+
3+
on:
4+
push:
5+
branches: [main, v*]
6+
pull_request:
7+
branches: [main, v*]
8+
schedule:
9+
# https://crontab.guru/#40_10_*_*_*
10+
- cron: '40 10 * * *'
11+
workflow_dispatch:
12+
13+
jobs:
14+
run:
15+
uses: ./.github/workflows/flutter.yml
16+
strategy:
17+
matrix:
18+
version:
19+
- latest
20+
- 3.0.0
21+
with:
22+
runs-on: macos-latest # Apple M1 Silicon
23+
version: ${{ matrix.version }}

.github/workflows/flutter-windows.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Flutter SDK for Windows
2+
3+
on:
4+
push:
5+
branches: [main, v*]
6+
pull_request:
7+
branches: [main, v*]
8+
schedule:
9+
# https://crontab.guru/#40_10_*_*_*
10+
- cron: '40 10 * * *'
11+
workflow_dispatch:
12+
13+
jobs:
14+
run:
15+
uses: ./.github/workflows/flutter.yml
16+
strategy:
17+
matrix:
18+
version:
19+
- latest
20+
- 3.0.0
21+
with:
22+
runs-on: windows-latest
23+
version: ${{ matrix.version }}

.github/workflows/flutter.yml

Lines changed: 16 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,29 @@
11
name: Flutter
22

33
on:
4-
push:
5-
branches: [main, v*]
6-
pull_request:
7-
branches: [main, v*]
8-
schedule:
9-
# https://crontab.guru/#40_10_*_*_*
10-
- cron: '40 10 * * *'
11-
workflow_dispatch:
4+
workflow_call:
5+
inputs:
6+
runs-on:
7+
description: 'Operating system'
8+
required: true
9+
default: 'ubuntu-latest'
10+
type: string
11+
version:
12+
description: 'Flutter version'
13+
required: true
14+
default: 'latest'
15+
type: string
1216

1317
jobs:
1418
test-stable:
15-
runs-on: ${{ matrix.os }}
16-
strategy:
17-
fail-fast: false
18-
matrix:
19-
os:
20-
- ubuntu-latest
21-
- macos-latest # Apple M1 Silicon
22-
- macos-13 # Intel Mac
23-
- windows-latest
24-
version:
25-
- latest
26-
- 3.3.0
27-
- 3.0.0
19+
runs-on: ${{ inputs.runs-on }}
2820
steps:
2921
- uses: actions/checkout@v4
3022

3123
- uses: ./
3224
with:
3325
channel: stable
34-
version: ${{ matrix.version }}
26+
version: ${{ inputs.version }}
3527

3628
- name: Dart version
3729
run: dart --version
@@ -46,26 +38,14 @@ jobs:
4638
dart hello.dart
4739
4840
test-beta:
49-
runs-on: ${{ matrix.os }}
50-
strategy:
51-
fail-fast: false
52-
matrix:
53-
os:
54-
- ubuntu-latest
55-
- macos-latest # Apple M1 Silicon
56-
- macos-13 # Intel Mac
57-
- windows-latest
58-
version:
59-
- latest
60-
- 3.3.0-0.0.pre
61-
- 3.1.0
41+
runs-on: ${{ inputs.runs-on }}
6242
steps:
6343
- uses: actions/checkout@v4
6444

6545
- uses: ./
6646
with:
6747
channel: beta
68-
version: ${{ matrix.version }}
48+
version: ${{ inputs.version }}
6949

7050
- name: Dart version
7151
run: dart --version

0 commit comments

Comments
 (0)