From d1f12e2f264ab0219b213bdf4e98af33aba1b9ad Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Sat, 26 Jun 2021 14:07:07 +0200 Subject: [PATCH] add cache in analyze --- .github/workflows/stream_flutter_workflow.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/stream_flutter_workflow.yml b/.github/workflows/stream_flutter_workflow.yml index 3a6c1650..1ca294df 100644 --- a/.github/workflows/stream_flutter_workflow.yml +++ b/.github/workflows/stream_flutter_workflow.yml @@ -2,6 +2,7 @@ name: stream_flutter_workflow env: ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + flutter_version: "2.2.2" on: pull_request: @@ -19,7 +20,14 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + - name: Cache Flutter dependencies + id: flutter-cache + uses: actions/cache@v2 + with: + path: /opt/hostedtoolcache/flutter + key: ${{ env.flutter_version }}-flutter - name: "Install Flutter" + if: steps.flutter-cache.outputs.cache-hit != 'true' uses: subosito/flutter-action@v1 with: channel: 'stable'