-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (38 loc) · 949 Bytes
/
flutter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Flutter
on:
workflow_call:
inputs:
runs-on:
description: 'Operating system'
required: true
default: 'ubuntu-latest'
type: string
channel:
description: 'Flutter channel'
required: true
default: 'stable'
type: string
version:
description: 'Flutter version'
required: true
default: 'latest'
type: string
jobs:
flutter:
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: ./
with:
channel: ${{ inputs.channel }}
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