File tree Expand file tree Collapse file tree 1 file changed +12
-33
lines changed Expand file tree Collapse file tree 1 file changed +12
-33
lines changed Original file line number Diff line number Diff line change 1
1
version : 2.1
2
2
3
- executors :
4
- go-executor :
5
- docker :
6
- - image : circleci/golang:1.18
7
- working_directory : ~/go/src/github.com/coderabbitai/grafana
8
-
9
- node-executor :
10
- docker :
11
- - image : circleci/node:16
12
- working_directory : ~/frontend
3
+ orbs :
4
+
5
+
13
6
14
7
jobs :
15
8
build-backend :
16
- executor : go-executor
9
+ executor : go/default
17
10
steps :
18
11
- checkout
19
- - restore_cache :
20
- keys :
21
- - go-mod-cache-{{ checksum "go.sum" }}
22
- - go-mod-cache-
23
12
- run :
24
- name : Install Go dependencies
25
- command : go mod download
26
- - save_cache :
27
- paths :
28
- - ~/go/pkg/mod
29
- key : go-mod-cache-{{ checksum "go.sum" }}
13
+ name : Tidy Go modules
14
+ command : go mod tidy
15
+ - go/install-deps :
16
+ cache-path : ~/go/pkg/mod
30
17
- run :
31
18
name : Build backend
32
- command : go build -o bin/backend ./...
19
+ command : go run build.go build
33
20
34
21
build-frontend :
35
- executor : node-executor
22
+ executor : node/default
36
23
steps :
37
24
- checkout
38
- - restore_cache :
39
- keys :
40
- - yarn-cache-{{ checksum "yarn.lock" }}
41
- - yarn-cache-
42
25
- run :
43
- name : Install frontend dependencies
44
- command : yarn install
45
- - save_cache :
46
- paths :
47
- - ~/.cache/yarn
48
- key : yarn-cache-{{ checksum "yarn.lock" }}
26
+ name : Install frontend dependencies with Yarn
27
+ command : yarn install --immutable
49
28
- run :
50
29
name : Build frontend
51
30
command : yarn build
You can’t perform that action at this time.
0 commit comments