1
0
Fork 0
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:
Bartek Pacia 2024-03-31 19:33:40 +02:00
parent e2c456ecd7
commit 86d4518859
No known key found for this signature in database

View file

@ -1,4 +1,5 @@
name: Main workflow name: Main workflow
on: on:
push: push:
branches: branches:
@ -12,20 +13,28 @@ on:
jobs: jobs:
lint_shellcheck: lint_shellcheck:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Clone repository
- uses: ludeeus/action-shellcheck@master uses: actions/checkout@v4
- name: Run shellcheck
uses: ludeeus/action-shellcheck@master
test_channel: test_channel:
runs-on: ${{ matrix.operating-system }} runs-on: ${{ matrix.operating-system }}
strategy: strategy:
matrix: 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] channel: [stable, beta, master]
include: include:
- operating-system: ubuntu-latest - operating-system: ubuntu-latest
channel: main channel: main
steps: steps:
- uses: actions/checkout@v4 - name: Clone repository
uses: actions/checkout@v4
- id: flutter-action - id: flutter-action
uses: ./ uses: ./
with: with:
@ -45,26 +54,34 @@ jobs:
shell: bash shell: bash
- run: flutter --version - run: flutter --version
shell: bash shell: bash
test_cache: test_cache:
runs-on: ${{ matrix.operating-system }} runs-on: ${{ matrix.operating-system }}
strategy: strategy:
matrix: 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: steps:
- uses: actions/checkout@v4 - name: Clone repository
uses: actions/checkout@v4
- uses: ./ - uses: ./
with: with:
channel: stable channel: stable
flutter-version: '3.10.6' flutter-version: "3.10.6"
cache: true cache: true
- run: dart --version - run: dart --version
shell: bash shell: bash
- run: flutter --version - run: flutter --version
shell: bash shell: bash
test_print_output: test_print_output:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v4 - name: Clone repository
uses: actions/checkout@v4
- run: ./setup.sh -t -p | grep 'stable' - run: ./setup.sh -t -p | grep 'stable'
shell: bash shell: bash
- run: ./setup.sh -t -p | grep '3.7.7' - run: ./setup.sh -t -p | grep '3.7.7'