Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit 6f60512

Browse files
author
pooya parsa
committed
ci: add .circleci
1 parent e9442c6 commit 6f60512

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.circleci/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node
6+
steps:
7+
# Checkout repository
8+
- checkout
9+
10+
# Restore cache
11+
- restore_cache:
12+
key: yarn-{{ checksum "yarn.lock" }}
13+
14+
# Install dependencies
15+
- run:
16+
name: Install Dependencies
17+
command: NODE_ENV=dev yarn
18+
19+
# Keep cache
20+
- save_cache:
21+
key: yarn-{{ checksum "yarn.lock" }}
22+
paths:
23+
- "node_modules"
24+
25+
# Lint
26+
- run:
27+
name: Lint
28+
command: yarn lint
29+
30+
# Test
31+
- run:
32+
name: Test
33+
command: yarn test
34+
35+
# Coverage
36+
- run:
37+
name: Coverage
38+
command: yarn codecov

0 commit comments

Comments
 (0)