Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ job_defaults: &job_defaults
working_directory: ~/project/repo

cache_key: &cache_key angular-testing-library-deps-cache-{{ checksum "yarn.lock" }}
dist_key: &dist_key angular-testing-library-dist-{{ .Revision }}

jobs:
install:
Expand Down Expand Up @@ -42,12 +41,12 @@ jobs:
- run:
name: build
command: yarn build
- save_cache:
key: *dist_key
paths:
- dist
- store_artifacts:
path: dist
- persist_to_workspace:
root: dist
paths:
- .

test:
<<: *job_defaults
Expand All @@ -65,8 +64,8 @@ jobs:
- checkout
- restore_cache:
key: *cache_key
- restore_cache:
key: *dist_key
- attach_workspace:
at: dist
- run:
name: release
command: yarn semantic-release || true
Expand All @@ -77,8 +76,8 @@ jobs:
- checkout
- restore_cache:
key: *cache_key
- restore_cache:
key: *dist_key
- attach_workspace:
at: dist
- run:
name: release
command: yarn semantic-release || true
Expand Down