-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move the current action to a sub folder and create a new top level composite action that reuses the old config action * add workflow tests
- Loading branch information
Showing
11 changed files
with
86 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
# Ensure that new pushes/updates cancel running jobs | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test-config: | ||
name: Config only | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Flutter | ||
id: config | ||
uses: ./ | ||
with: | ||
path: test/.fvmrc | ||
- run: echo ${{ steps.config.outputs.FLUTTER_VERSION }} | ||
- run: echo ${{ steps.config.outputs.FLUTTER_CHANNEL }} | ||
- run: echo ${{ env.FLUTTER_VERSION }} | ||
- run: echo ${{ env.FLUTTER_CHANNEL }} | ||
|
||
test-setup: | ||
name: Setup | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Flutter | ||
uses: ./ | ||
with: | ||
path: test/.fvmrc | ||
setup-flutter: true | ||
- run: flutter --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 'Flutter FVM config action' | ||
description: 'Action that parses an FVM config file in order to configure the subosito/flutter-action.' | ||
author: 'Peter Leibiger' | ||
inputs: | ||
path: | ||
description: 'Path to the FVM config file' | ||
required: false | ||
flavor: | ||
description: 'Flavor to use' | ||
required: false | ||
default: '' | ||
outputs: | ||
FLUTTER_VERSION: | ||
description: 'The version of Flutter specified in the fvm configuration file' | ||
FLUTTER_CHANNEL: | ||
description: 'The channel of Flutter specified in the fvm configuration file' | ||
runs: | ||
using: 'node20' | ||
main: 'dist/index.js' | ||
branding: | ||
icon: 'maximize' | ||
color: 'blue' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"flutter": "3.24.0@stable", | ||
"flavors": {} | ||
} |