Skip to content

Commit c3948ae

Browse files
committed
Refactor test workflows
1 parent 9241993 commit c3948ae

File tree

5 files changed

+47
-171
lines changed

5 files changed

+47
-171
lines changed

.github/workflows/flutter-linux.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

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

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/flutter-macos.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/flutter-windows.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/flutter.yml

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,59 @@ on:
2020
type: string
2121

2222
jobs:
23-
flutter:
24-
runs-on: ${{ inputs.runs-on }}
23+
stable:
24+
runs-on: ${{ matrix.runs-on }}
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
runs-on:
29+
- ubuntu-latest
30+
- windows-latest
31+
- macos-latest # Apple M1 Silicon
32+
- macos-13 # Intel macOS
33+
version:
34+
- latest
35+
- 3.27.0
2536
steps:
2637
- uses: actions/checkout@v4
2738

2839
- uses: ./
2940
with:
3041
version: ${{ inputs.version }}
31-
channel: ${{ inputs.channel }}
42+
channel: stable
43+
44+
- name: Dart version
45+
run: dart --version
46+
- name: Flutter version
47+
run: flutter --version
48+
- name: Flutter doctor
49+
run: flutter doctor
50+
51+
- name: Run hello world
52+
run: |
53+
echo "main() { print('hello world'); }" > hello.dart
54+
dart hello.dart
55+
56+
beta:
57+
runs-on: ${{ matrix.runs-on }}
58+
strategy:
59+
fail-fast: false
60+
matrix:
61+
runs-on:
62+
- ubuntu-latest
63+
- windows-latest
64+
- macos-latest # Apple M1 Silicon
65+
- macos-13 # Intel macOS
66+
version:
67+
- latest
68+
- 3.27.0-0.1.pre
69+
steps:
70+
- uses: actions/checkout@v4
71+
72+
- uses: ./
73+
with:
74+
version: ${{ inputs.version }}
75+
channel: beta
3276

3377
- name: Dart version
3478
run: dart --version

0 commit comments

Comments
 (0)