-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
65 lines (61 loc) · 1.61 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
version: 2.1
jobs:
build:
parameters:
apply:
type: boolean
default: false
docker:
- image: circleci/node:10.16.3
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
- v1-dependencies-
- run:
name: Install dependencies
command: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package-lock.json" }}
- run:
name: Run tests
command: npm test
- run:
name: "Archive repositories (apply: << parameters.apply >>)"
command: node cli.js archive <<# parameters.apply >>--apply<</ parameters.apply >>
- run:
name: "Enable security alerts (apply: << parameters.apply >>)"
command: node cli.js enable-security-alerts <<# parameters.apply >>--apply<</ parameters.apply >>
- run:
name: "Enable security fixes (apply: << parameters.apply >>)"
command: node cli.js enable-security-fixes <<# parameters.apply >>--apply<</ parameters.apply >>
workflows:
version: 2
pushes:
jobs:
# "plan" vs. apply
- build:
filters:
branches:
ignore:
- main
- build:
filters:
branches:
only:
- main
apply: true
nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- main
jobs:
- build:
apply: true