mirror of
https://github.com/subosito/flutter-action.git
synced 2024-08-16 10:19:50 +02:00
format workflow.yml
This commit is contained in:
parent
e2c456ecd7
commit
86d4518859
1 changed files with 132 additions and 115 deletions
33
.github/workflows/workflow.yml
vendored
33
.github/workflows/workflow.yml
vendored
|
@ -1,4 +1,5 @@
|
|||
name: Main workflow
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
@ -12,20 +13,28 @@ on:
|
|||
jobs:
|
||||
lint_shellcheck:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ludeeus/action-shellcheck@master
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Run shellcheck
|
||||
uses: ludeeus/action-shellcheck@master
|
||||
|
||||
test_channel:
|
||||
runs-on: ${{ matrix.operating-system }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
operating-system: [ubuntu-latest, windows-latest, macos-latest, macos-13, macos-14]
|
||||
operating-system:
|
||||
[ubuntu-latest, windows-latest, macos-latest, macos-13, macos-14]
|
||||
channel: [stable, beta, master]
|
||||
include:
|
||||
- operating-system: ubuntu-latest
|
||||
channel: main
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
- id: flutter-action
|
||||
uses: ./
|
||||
with:
|
||||
|
@ -45,26 +54,34 @@ jobs:
|
|||
shell: bash
|
||||
- run: flutter --version
|
||||
shell: bash
|
||||
|
||||
test_cache:
|
||||
runs-on: ${{ matrix.operating-system }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
operating-system: [ubuntu-latest, windows-latest, macos-latest, macos-13, macos-14]
|
||||
operating-system:
|
||||
[ubuntu-latest, windows-latest, macos-latest, macos-13, macos-14]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
- uses: ./
|
||||
with:
|
||||
channel: stable
|
||||
flutter-version: '3.10.6'
|
||||
flutter-version: "3.10.6"
|
||||
cache: true
|
||||
- run: dart --version
|
||||
shell: bash
|
||||
- run: flutter --version
|
||||
shell: bash
|
||||
|
||||
test_print_output:
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
- run: ./setup.sh -t -p | grep 'stable'
|
||||
shell: bash
|
||||
- run: ./setup.sh -t -p | grep '3.7.7'
|
||||
|
|
Loading…
Reference in a new issue