Skip to content

Commit 677a06e

Browse files
committed
[build] add UI build and use workflow
1 parent 389b88b commit 677a06e

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

.circleci/config.yml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
1-
# Golang CircleCI 2.0 configuration file
2-
#
3-
# Check https://circleci.com/docs/2.0/language-go/ for more details
41
version: 2
52
jobs:
3+
ui:
4+
docker:
5+
- image: circleci/node:10.8.0
6+
steps:
7+
- attach_workspace:
8+
at: ./ui/dist
9+
- checkout
10+
- run: npm install
11+
- run: npm test
12+
- run: npm run build
13+
614
build:
715
docker:
8-
# specify the version
916
- image: circleci/golang:1.10
1017

11-
# Specify service dependencies here if necessary
12-
# CircleCI maintains a library of pre-built images
13-
# documented at https://circleci.com/docs/2.0/circleci-images/
14-
# - image: circleci/postgres:9.4
15-
16-
#### TEMPLATE_NOTE: go expects specific checkout path representing url
17-
#### expecting it in the form of
18-
#### /go/src/github.com/circleci/go-tool
19-
#### /go/src/bitbucket.org/circleci/go-tool
2018
working_directory: /go/src/github.com/g3force/ssl-game-controller
2119
steps:
20+
- attach_workspace:
21+
at: ./ui/dist
2222
- checkout
23-
24-
# specify any bash command here prefixed with `run: `
2523
- run: go get -v -t -d ./...
2624
- run: go test -v ./...
25+
26+
workflows:
27+
version: 2
28+
release:
29+
jobs:
30+
- ui
31+
- build:
32+
requires:
33+
- ui

0 commit comments

Comments
 (0)