-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
69 lines (59 loc) · 1.32 KB
/
config.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: 2
references:
container_config: &container_config
docker:
- image: circleci/node:9.3
working_directory: ~/repo
yarn_cache_config: &yarn_cache_config
key: dependencies-{{.Branch}}-{{checksum "yarn.lock"}}-{{checksum "package.json"}}
paths:
- node_modules
restore_cache: &restore_cache
restore_cache:
<<: *yarn_cache_config
name: Restore Yarn Cache
save_cache: &save_cache
save_cache:
<<: *yarn_cache_config
name: Save Yarn Cache
deps: &deps
run:
name: Install dependencies
command: yarn install
jobs:
test:
<<: *container_config
steps:
- checkout
- *restore_cache
- *deps
- *save_cache
- run: yarn test
notify_outdated:
<<: *container_config
steps:
- checkout
- *restore_cache
- *deps
- *save_cache
- run: |
yarn outdated-notifier \
--labels "yarn-outdated" \
--assignees "tsuyoshiwada" \
--changelogs "changelogs.yml" \
--api-token $GITHUB_API_TOKEN
workflows:
version: 2
testing:
jobs:
- test
notification:
jobs:
- notify_outdated
triggers:
- schedule:
cron: "0 1 * * 4"
filters:
branches:
only:
- master