Skip to content

Commit

Permalink
Indent workflow yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
git-elliot committed Aug 31, 2023
1 parent 42708f5 commit 1dbbd84
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
channel: stable

- name: Flutter version
run: flutter --version

- name: Cache pubspec dependencies
uses: actions/[email protected]
with:
Expand All @@ -47,6 +52,7 @@ jobs:
key: build-pubspec-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
build-pubspec-
- name: Cache build runner
uses: actions/cache@v2
with:
Expand All @@ -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
10 changes: 9 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
channel: stable

- name: Flutter version
run: flutter --version

- name: Cache pubspec dependencies
uses: actions/[email protected]
with:
Expand All @@ -33,6 +38,7 @@ jobs:
key: build-pubspec-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
build-pubspec-
- name: Cache build runner
uses: actions/cache@v2
with:
Expand All @@ -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

Expand Down

0 comments on commit 1dbbd84

Please sign in to comment.