-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcircle.yml
35 lines (35 loc) · 917 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: 2.1
jobs:
test:
docker:
- image: cypress/base:10
steps:
- checkout
- restore_cache:
keys:
- cache-{{ arch }}-{{ .Branch }}-{{ checksum "package.json" }}
- run:
name: Yarn install
command: yarn install --frozen-lockfile
- save_cache:
key: cache-{{ arch }}-{{ .Branch }}-{{ checksum "package.json" }}
paths:
- ~/.cache
- run:
command: yarn lint
- run:
command: yarn test-e2e
- run:
command: yarn add -D cypress@3.8.3 && yarn test-e2e
- run:
command: yarn add -D cypress@3.4.1 && yarn test-e2e
- run:
command: yarn run semantic-release
workflows:
build:
jobs:
- test
version: 2
# Semantic-release bot needs env vars:
# GH_TOKEN: repo, read:org, write:repo_hook, user:email
# NPM_TOKEN: read/release