-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [misc] update workflow * [fix] staticcheck * [fix] remove build job * [misc] workflow
- Loading branch information
1 parent
5e90bef
commit 7431507
Showing
4 changed files
with
27 additions
and
23 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,20 +1,26 @@ | ||
# Golang CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-go/ for more details | ||
# https://github.com/CircleCI-Public/circleci-demo-go/blob/master/.circleci/config.yml | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
# specify the version | ||
- image: cimg/go:1.17 | ||
version: 2.1 | ||
|
||
orbs: | ||
ta-go: travelaudience/[email protected] | ||
|
||
steps: | ||
- checkout | ||
- run: go test -race -count=1 -coverprofile=profile.out ./... | ||
executors: | ||
golang-executor: | ||
docker: | ||
- image: golang:1.19.0-bullseye | ||
environment: | ||
GO111MODULE: "on" | ||
GOPRIVATE: github.com/travelaudience/* | ||
working_directory: /go/src/github.com/travelaudience/go-sx/ | ||
|
||
workflows: | ||
version: 2 | ||
build-workflow: | ||
build_and_test: | ||
jobs: | ||
- build | ||
|
||
- ta-go/checks: | ||
name: check | ||
exec: golang-executor | ||
run-static-analysis: true | ||
|
||
- ta-go/test_and_coverage: | ||
name: test | ||
exec: golang-executor |
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
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