Skip to content

Commit

Permalink
Rework test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed Dec 13, 2024
1 parent 9a30e0e commit 0cdb879
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 24 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/flutter-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Flutter SDK for Linux

on:
push:
branches: [main, v*]
pull_request:
branches: [main, v*]
schedule:
# https://crontab.guru/#40_10_*_*_*
- cron: '40 10 * * *'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
uses: ./.github/workflows/flutter.yml
with:
runs-on: ubuntu-latest
21 changes: 21 additions & 0 deletions .github/workflows/flutter-macos-intel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Flutter SDK for macOS (Intel)

on:
push:
branches: [main, v*]
pull_request:
branches: [main, v*]
schedule:
# https://crontab.guru/#40_10_*_*_*
- cron: '40 10 * * *'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
uses: ./.github/workflows/flutter.yml
with:
runs-on: macos-13 # Intel Mac
21 changes: 21 additions & 0 deletions .github/workflows/flutter-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Flutter SDK for macOS

on:
push:
branches: [main, v*]
pull_request:
branches: [main, v*]
schedule:
# https://crontab.guru/#40_10_*_*_*
- cron: '40 10 * * *'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
uses: ./.github/workflows/flutter.yml
with:
runs-on: macos-latest # Apple M1 Silicon
21 changes: 21 additions & 0 deletions .github/workflows/flutter-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Flutter SDK for Windows

on:
push:
branches: [main, v*]
pull_request:
branches: [main, v*]
schedule:
# https://crontab.guru/#40_10_*_*_*
- cron: '40 10 * * *'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
uses: ./.github/workflows/flutter.yml
with:
runs-on: windows-latest
33 changes: 9 additions & 24 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,20 @@
name: Flutter

on:
push:
branches: [main, v*]
pull_request:
branches: [main, v*]
schedule:
# https://crontab.guru/#40_10_*_*_*
- cron: '40 10 * * *'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
workflow_call:
inputs:
runs-on:
description: 'Operating system'
required: true
default: 'ubuntu-latest'
type: string

jobs:
stable:
runs-on: ${{ matrix.runs-on }}
runs-on: ${{ inputs.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-latest
- windows-latest
- macos-latest # Apple M1 Silicon
- macos-13 # Intel macOS
version:
- latest
- 3.27.0
Expand All @@ -49,15 +39,10 @@ jobs:
dart hello.dart
beta:
runs-on: ${{ matrix.runs-on }}
runs-on: ${{ inputs.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-latest
- windows-latest
- macos-latest # Apple M1 Silicon
- macos-13 # Intel macOS
version:
- latest
- 3.27.0-0.1.pre
Expand Down

0 comments on commit 0cdb879

Please sign in to comment.