Skip to content

Commit 0cdb879

Browse files
committed
Rework test workflows
1 parent 9a30e0e commit 0cdb879

File tree

5 files changed

+93
-24
lines changed

5 files changed

+93
-24
lines changed

.github/workflows/flutter-linux.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
test:
19+
uses: ./.github/workflows/flutter.yml
20+
with:
21+
runs-on: ubuntu-latest
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
test:
19+
uses: ./.github/workflows/flutter.yml
20+
with:
21+
runs-on: macos-13 # Intel Mac

.github/workflows/flutter-macos.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
test:
19+
uses: ./.github/workflows/flutter.yml
20+
with:
21+
runs-on: macos-latest # Apple M1 Silicon

.github/workflows/flutter-windows.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
test:
19+
uses: ./.github/workflows/flutter.yml
20+
with:
21+
runs-on: windows-latest

.github/workflows/flutter.yml

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
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:
12-
13-
concurrency:
14-
group: ${{ github.workflow }}-${{ github.ref }}
15-
cancel-in-progress: true
4+
workflow_call:
5+
inputs:
6+
runs-on:
7+
description: 'Operating system'
8+
required: true
9+
default: 'ubuntu-latest'
10+
type: string
1611

1712
jobs:
1813
stable:
19-
runs-on: ${{ matrix.runs-on }}
14+
runs-on: ${{ inputs.runs-on }}
2015
strategy:
2116
fail-fast: false
2217
matrix:
23-
runs-on:
24-
- ubuntu-latest
25-
- windows-latest
26-
- macos-latest # Apple M1 Silicon
27-
- macos-13 # Intel macOS
2818
version:
2919
- latest
3020
- 3.27.0
@@ -49,15 +39,10 @@ jobs:
4939
dart hello.dart
5040
5141
beta:
52-
runs-on: ${{ matrix.runs-on }}
42+
runs-on: ${{ inputs.runs-on }}
5343
strategy:
5444
fail-fast: false
5545
matrix:
56-
runs-on:
57-
- ubuntu-latest
58-
- windows-latest
59-
- macos-latest # Apple M1 Silicon
60-
- macos-13 # Intel macOS
6146
version:
6247
- latest
6348
- 3.27.0-0.1.pre

0 commit comments

Comments
 (0)