From 1dbbd84e14d081a1fb921e4407ebc383f2a5de54 Mon Sep 17 00:00:00 2001 From: git-elliot Date: Thu, 31 Aug 2023 20:35:16 +0530 Subject: [PATCH] Indent workflow yml files --- .github/workflows/flutter.yml | 11 ++++++++++- .github/workflows/publish.yml | 10 +++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index deb8c1d..f8ea8cc 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -23,18 +23,23 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Java JDK uses: actions/setup-java@v3 with: distribution: temurin java-version: '17' + - name: Flutter action uses: subosito/flutter-action@v2.8.0 with: channel: stable + - name: Flutter version run: flutter --version + - name: Cache pubspec dependencies uses: actions/cache@v3.0.7 with: @@ -47,6 +52,7 @@ jobs: key: build-pubspec-${{ hashFiles('**/pubspec.lock') }} restore-keys: | build-pubspec- + - name: Cache build runner uses: actions/cache@v2 with: @@ -58,9 +64,12 @@ jobs: key: build-runner-${{ hashFiles('**/asset_graph.json', '**/*.dart', '**/pubspec.lock', '**/outputs.json') }} restore-keys: | build-runner- + - name: Download pub dependencies run: flutter pub get + - name: Run analyzer run: flutter analyze + - name: Run tests run: flutter test \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 863fcbf..614a04e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,18 +9,23 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Java JDK uses: actions/setup-java@v3 with: distribution: temurin java-version: '17' + - name: Flutter action uses: subosito/flutter-action@v2.8.0 with: channel: stable + - name: Flutter version run: flutter --version + - name: Cache pubspec dependencies uses: actions/cache@v3.0.7 with: @@ -33,6 +38,7 @@ jobs: key: build-pubspec-${{ hashFiles('**/pubspec.lock') }} restore-keys: | build-pubspec- + - name: Cache build runner uses: actions/cache@v2 with: @@ -44,8 +50,10 @@ jobs: key: build-runner-${{ hashFiles('**/asset_graph.json', '**/*.dart', '**/pubspec.lock', '**/outputs.json') }} restore-keys: | build-runner- + - name: Download pub dependencies run: flutter pub get + - name: Run analyzer run: flutter analyze --fatal-infos