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 1b906b3 commit 3288573
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 33 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/flutter-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,28 @@ concurrency:
cancel-in-progress: true

jobs:
test:
stable:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.0.0
- 3.27.0
with:
runs-on: ubuntu-latest
version: ${{ matrix.version }}
channel: stable

beta:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.27.0-0.1.pre
with:
runs-on: ubuntu-latest
version: ${{ matrix.version }}
channel: beta
20 changes: 17 additions & 3 deletions .github/workflows/flutter-macos-intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,28 @@ concurrency:
cancel-in-progress: true

jobs:
test:
stable:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.0.0
- 3.27.0
with:
runs-on: macos-13 # Intel Mac
runs-on: macos-13 # Intel macOS
version: ${{ matrix.version }}
channel: stable

beta:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.27.0-0.1.pre
with:
runs-on: macos-13 # Intel macOS
version: ${{ matrix.version }}
channel: beta
18 changes: 16 additions & 2 deletions .github/workflows/flutter-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,28 @@ concurrency:
cancel-in-progress: true

jobs:
test:
stable:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.0.0
- 3.27.0
with:
runs-on: macos-latest # Apple M1 Silicon
version: ${{ matrix.version }}
channel: stable

beta:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.27.0-0.1.pre
with:
runs-on: macos-latest # Apple M1 Silicon
version: ${{ matrix.version }}
channel: beta
18 changes: 16 additions & 2 deletions .github/workflows/flutter-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,28 @@ concurrency:
cancel-in-progress: true

jobs:
test:
stable:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.0.0
- 3.27.0
with:
runs-on: windows-latest
version: ${{ matrix.version }}
channel: stable

beta:
uses: ./.github/workflows/flutter.yml
strategy:
fail-fast: false
matrix:
version:
- latest
- 3.27.0-0.1.pre
with:
runs-on: windows-latest
version: ${{ matrix.version }}
channel: beta
31 changes: 7 additions & 24 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,22 @@ on:
required: true
default: 'latest'
type: string
channel:
description: 'Flutter channel'
required: true
default: 'stable'
type: string

jobs:
test-stable:
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v4

- uses: ./
with:
channel: stable
version: ${{ inputs.version }}

- name: Dart version
run: dart --version
- name: Flutter version
run: flutter --version
- name: Flutter doctor
run: flutter doctor

- name: Run hello world
run: |
echo "main() { print('hello world'); }" > hello.dart
dart hello.dart
test-beta:
flutter:
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v4

- uses: ./
with:
channel: beta
version: ${{ inputs.version }}
channel: ${{ inputs.channel }}

- name: Dart version
run: dart --version
Expand Down

0 comments on commit 3288573

Please sign in to comment.