-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yaml
45 lines (35 loc) · 963 Bytes
/
.cirrus.yaml
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
container:
image: node:latest
node_modules_cache: &node_modules_cache
node_modules_cache:
folder: node_modules
fingerprint_script:
- echo $CIRRUS_OS
- cat package.json
install_script:
- npm install -g pnpm
- pnpm install
remark_task:
<<: *node_modules_cache
lint_script: pnpm run lint:docs
only_if: ($CIRRUS_BRANCH == 'main') ||
changesInclude(
'.cirrus.yaml', '.gitignore', 'package.json',
'.remark*', '**.md'
)
stylelint_task:
<<: *node_modules_cache
lint_script: pnpm run lint:styles
only_if: ($CIRRUS_BRANCH == 'main') ||
changesInclude(
'.cirrus.yaml', '.gitignore', 'package.json',
'.stylelint*', 'styles/**'
)
eslint_task:
<<: *node_modules_cache
lint_script: pnpm run lint:scripts
only_if: ($CIRRUS_BRANCH == 'main') ||
changesInclude(
'.cirrus.yaml', '.gitignore', 'package.json',
'.eslint*', 'scripts/**', 'exe/*.js', '*.{,m}js'
)