Add dry-run (#270)

* Add dry-run

* Add dry-run test

* format

---------

Co-authored-by: Bartek Pacia <barpac02@gmail.com>
This commit is contained in:
kzrnm
2024-04-02 21:25:52 +09:00
committed by GitHub
parent 980391a6c5
commit 44ac965b96
3 changed files with 39 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ jobs:
operating-system:
[ubuntu-latest, windows-latest, macos-latest, macos-13, macos-14]
channel: [stable, beta, master]
dry-run: [true, false]
include:
- operating-system: ubuntu-latest
channel: main
@@ -39,6 +40,7 @@ jobs:
uses: ./
with:
channel: ${{ matrix.channel }}
dry-run: ${{ matrix.dry-run }}
- name: Echo outputs
run: |
echo RUNNER-OS=${{ runner.os }}
@@ -51,8 +53,16 @@ jobs:
echo ARCHITECTURE=${{ steps.flutter-action.outputs.ARCHITECTURE }}
shell: bash
- run: dart --version
if: ${{ matrix.dry-run != 'true' }}
shell: bash
- run: flutter --version
if: ${{ matrix.dry-run != 'true' }}
shell: bash
- run: "! dart --version"
if: ${{ matrix.dry-run == 'true' }}
shell: bash
- run: "! flutter --version"
if: ${{ matrix.dry-run == 'true' }}
shell: bash
test_cache: