Skip to content

Commit 4bf5412

Browse files
committed
Implementing CircleCI build configuration
1 parent 1799a96 commit 4bf5412

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.circleci/config.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version: 2.1
2+
3+
orbs:
4+
node: circleci/[email protected]
5+
6+
ignore_forks: &ignore_forks
7+
branches:
8+
# Forked pull requests have CIRCLE_BRANCH set to pull/XXX
9+
ignore: /pull\/[0-9]+/
10+
11+
only_forks: &only_forks
12+
branches:
13+
# Forked pull requests have CIRCLE_BRANCH set to pull/XXX
14+
only: /pull\/[0-9]+/
15+
16+
jobs:
17+
test:
18+
executor:
19+
name: node/default
20+
tag: '16.16'
21+
steps:
22+
- checkout
23+
- node/install-packages:
24+
pkg-manager: yarn
25+
- run:
26+
command: yarn run test
27+
name: Run the ESLint plugin tests
28+
29+
workflows:
30+
test_from_branches:
31+
jobs:
32+
- test:
33+
filters:
34+
<<: *ignore_forks
35+
test_from_forks:
36+
jobs:
37+
- test:
38+
filters:
39+
<<: *only_forks

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,12 @@
7777
"tabWidth": 4,
7878
"singleQuote": true,
7979
"trailingComma": "none"
80+
},
81+
"engines": {
82+
"node": ">=14"
83+
},
84+
"volta": {
85+
"node": "16.17.1",
86+
"yarn": "1.22.19"
8087
}
8188
}

0 commit comments

Comments
 (0)