format workflow.yml
This commit is contained in:
33
.github/workflows/workflow.yml
vendored
33
.github/workflows/workflow.yml
vendored
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user