Move 'requires' keyword to workflows

pull/7/head
Oystein Kristoffer Tveit 2021-03-05 23:40:05 +01:00
parent 6eab955075
commit 8432306edb
1 changed files with 8 additions and 8 deletions

View File

@ -27,12 +27,11 @@ jobs:
lint: lint:
description: "Run static analysis for the code" description: "Run static analysis for the code"
requires: build
docker: docker:
- image: cirrusci/flutter:v1.10.7 - 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" }}
@ -43,12 +42,11 @@ jobs:
test: test:
description: "Run all unittests" description: "Run all unittests"
requires: build
docker: docker:
- image: cirrusci/flutter:v1.10.7 - 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" }}
@ -70,5 +68,7 @@ workflows:
build_and_test: build_and_test:
jobs: jobs:
- build - build
- lint - lint:
- test requires: build
- test:
requires: build