Skip to content

Commit 3288573

Browse files
committed
Rework test workflows
1 parent 1b906b3 commit 3288573

File tree

5 files changed

+72
-33
lines changed

5 files changed

+72
-33
lines changed

.github/workflows/flutter-linux.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,28 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18-
test:
18+
stable:
1919
uses: ./.github/workflows/flutter.yml
2020
strategy:
2121
fail-fast: false
2222
matrix:
2323
version:
2424
- latest
25-
- 3.0.0
25+
- 3.27.0
2626
with:
2727
runs-on: ubuntu-latest
2828
version: ${{ matrix.version }}
29+
channel: stable
30+
31+
beta:
32+
uses: ./.github/workflows/flutter.yml
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
version:
37+
- latest
38+
- 3.27.0-0.1.pre
39+
with:
40+
runs-on: ubuntu-latest
41+
version: ${{ matrix.version }}
42+
channel: beta

.github/workflows/flutter-macos-intel.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,28 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18-
test:
18+
stable:
1919
uses: ./.github/workflows/flutter.yml
2020
strategy:
2121
fail-fast: false
2222
matrix:
2323
version:
2424
- latest
25-
- 3.0.0
25+
- 3.27.0
2626
with:
27-
runs-on: macos-13 # Intel Mac
27+
runs-on: macos-13 # Intel macOS
2828
version: ${{ matrix.version }}
29+
channel: stable
30+
31+
beta:
32+
uses: ./.github/workflows/flutter.yml
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
version:
37+
- latest
38+
- 3.27.0-0.1.pre
39+
with:
40+
runs-on: macos-13 # Intel macOS
41+
version: ${{ matrix.version }}
42+
channel: beta

.github/workflows/flutter-macos.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,28 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18-
test:
18+
stable:
1919
uses: ./.github/workflows/flutter.yml
2020
strategy:
2121
fail-fast: false
2222
matrix:
2323
version:
2424
- latest
25-
- 3.0.0
25+
- 3.27.0
2626
with:
2727
runs-on: macos-latest # Apple M1 Silicon
2828
version: ${{ matrix.version }}
29+
channel: stable
30+
31+
beta:
32+
uses: ./.github/workflows/flutter.yml
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
version:
37+
- latest
38+
- 3.27.0-0.1.pre
39+
with:
40+
runs-on: macos-latest # Apple M1 Silicon
41+
version: ${{ matrix.version }}
42+
channel: beta

.github/workflows/flutter-windows.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,28 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18-
test:
18+
stable:
1919
uses: ./.github/workflows/flutter.yml
2020
strategy:
2121
fail-fast: false
2222
matrix:
2323
version:
2424
- latest
25-
- 3.0.0
25+
- 3.27.0
2626
with:
2727
runs-on: windows-latest
2828
version: ${{ matrix.version }}
29+
channel: stable
30+
31+
beta:
32+
uses: ./.github/workflows/flutter.yml
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
version:
37+
- latest
38+
- 3.27.0-0.1.pre
39+
with:
40+
runs-on: windows-latest
41+
version: ${{ matrix.version }}
42+
channel: beta

.github/workflows/flutter.yml

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,22 @@ on:
1313
required: true
1414
default: 'latest'
1515
type: string
16+
channel:
17+
description: 'Flutter channel'
18+
required: true
19+
default: 'stable'
20+
type: string
1621

1722
jobs:
18-
test-stable:
19-
runs-on: ${{ inputs.runs-on }}
20-
steps:
21-
- uses: actions/checkout@v4
22-
23-
- uses: ./
24-
with:
25-
channel: stable
26-
version: ${{ inputs.version }}
27-
28-
- name: Dart version
29-
run: dart --version
30-
- name: Flutter version
31-
run: flutter --version
32-
- name: Flutter doctor
33-
run: flutter doctor
34-
35-
- name: Run hello world
36-
run: |
37-
echo "main() { print('hello world'); }" > hello.dart
38-
dart hello.dart
39-
40-
test-beta:
23+
flutter:
4124
runs-on: ${{ inputs.runs-on }}
4225
steps:
4326
- uses: actions/checkout@v4
4427

4528
- uses: ./
4629
with:
47-
channel: beta
4830
version: ${{ inputs.version }}
31+
channel: ${{ inputs.channel }}
4932

5033
- name: Dart version
5134
run: dart --version

0 commit comments

Comments
 (0)