-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): improve golang build workflow on circle ci
- Loading branch information
Showing
3 changed files
with
14 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
node: circleci/[email protected] | ||
codecov: codecov/[email protected] | ||
node: circleci/[email protected] | ||
go: circleci/[email protected] | ||
codecov: codecov/[email protected] | ||
|
||
executors: | ||
base: | ||
|
@@ -27,25 +28,15 @@ jobs: | |
## Backend | ||
test_app: | ||
executor: go | ||
working_directory: ~/go/src/github.com/ArtalkJS/Artalk | ||
environment: | ||
GO111MODULE: "on" | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- run: | ||
name: "Print the Go version" | ||
command: > | ||
go version | ||
- restore_cache: | ||
keys: | ||
- go-mod-1.22.6-{{ checksum "go.sum" }} | ||
- run: | ||
name: Install Dependencies | ||
command: go mod download | ||
- save_cache: | ||
key: go-mod-1.22.6-{{ checksum "go.sum" }} | ||
paths: | ||
- "~/go/pkg/mod" | ||
command: go version | ||
- go/load-cache | ||
- go/mod-download | ||
- go/save-cache | ||
- run: | ||
name: Run tests | ||
command: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name: admin | ||
email: [email protected] | ||
link: https://qwqaq.com | ||
password: 123456 | ||
password: "123456" | ||
badge_name: 管理员 | ||
badge_color: #fff | ||
last_ip: 10.90.1.1 | ||
|