1
0
Fork 0
mirror of https://github.com/subosito/flutter-action.git synced 2024-08-16 10:19:50 +02:00
flutter/.github/workflows/workflow.yml

75 lines
1.8 KiB
YAML
Raw Normal View History

2019-08-13 12:11:30 +02:00
name: Main workflow
on: [push]
jobs:
2022-01-06 09:57:24 +01:00
test_channel:
2019-08-13 12:11:30 +02:00
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
2022-01-06 08:40:25 +01:00
channel: [stable, beta, dev]
2019-08-13 12:11:30 +02:00
steps:
- name: Checkout
2020-03-04 18:06:13 +01:00
uses: actions/checkout@v2
2022-01-06 08:40:25 +01:00
- uses: ./
2019-08-13 12:11:30 +02:00
with:
2022-01-06 08:40:25 +01:00
channel: ${{ matrix.channel }}
2022-01-06 09:45:45 +01:00
- name: Print FLUTTER_ROOT
2022-01-06 09:38:04 +01:00
shell: bash
run: echo "FLUTTER_ROOT set to $FLUTTER_ROOT"
2022-01-06 09:48:07 +01:00
- name: Print PUBCACHE
shell: bash
run: echo "PUBCACHE set to $PUBCACHE"
2022-01-06 09:45:45 +01:00
- name: Run dart --version
shell: bash
run: dart --version
2022-01-06 09:38:04 +01:00
- name: Run flutter --version
shell: bash
run: flutter --version
2022-01-06 09:57:24 +01:00
test_version:
runs-on: ubuntu-latest
strategy:
matrix:
version: [ 2.5.3, 2.x, 1, v1.12 ]
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: ./
with:
channel: stable
flutter-version: ${{ matrix.version }}
- name: Run dart --version
shell: bash
run: dart --version
- name: Run flutter --version
shell: bash
run: flutter --version
2022-01-06 10:17:20 +01:00
test_master_channel:
2022-01-06 10:05:37 +01:00
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: ./
with:
channel: master
- name: Run dart --version
shell: bash
run: dart --version
- name: Run flutter --version
shell: bash
run: flutter --version
2022-01-06 10:17:20 +01:00
test_any_channel:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: ./
with:
channel: any
flutter-version: 2
- name: Run dart --version
shell: bash
run: dart --version
- name: Run flutter --version
shell: bash
run: flutter --version