Save dependencies to cache

This commit is contained in:
Oystein Kristoffer Tveit 2021-03-06 00:01:51 +01:00
parent 8524c2ee56
commit 3e3871fe7e
1 changed files with 16 additions and 19 deletions

View File

@ -20,10 +20,10 @@ jobs:
name: Build name: Build
command: flutter -v build apk command: flutter -v build apk
# - save_cache: - save_cache:
# paths: paths:
# - .dart_tool - .dart_tool
# key: dart-dependencies-{{ checksum "pubspec.lock" }} key: dart-dependencies-{{ checksum "pubspec.lock" }}
lint: lint:
description: "Run static analysis for the code" description: "Run static analysis for the code"
@ -31,11 +31,13 @@ jobs:
- image: cirrusci/flutter:stable - image: cirrusci/flutter:stable
working_directory: ~/project working_directory: ~/project
steps: steps:
# - checkout - checkout
# - restore_cache:
# keys: - restore_cache:
# - dart-dependencies-{{ checksum "pubspec.lock" }} keys:
# - dart-dependencies- - dart-dependencies-{{ checksum "pubspec.lock" }}
- dart-dependencies-
- run: - run:
name: Analyze code name: Analyze code
command: flutter analyze lib command: flutter analyze lib
@ -46,16 +48,11 @@ jobs:
- image: cirrusci/flutter:stable - image: cirrusci/flutter:stable
working_directory: ~/project working_directory: ~/project
steps: steps:
# - checkout - checkout
# - restore_cache: - restore_cache:
# keys: keys:
# - dart-dependencies-{{ checksum "pubspec.lock" }} - dart-dependencies-{{ checksum "pubspec.lock" }}
# - dart-dependencies- - dart-dependencies-
# - save_cache:
# paths:
# - .dart_tool
# key: dart-dependencies-{{ checksum "pubspec.lock" }}
- run: - run:
name: Run tests name: Run tests