-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into doco-tweaks
- Loading branch information
Showing
104 changed files
with
5,060 additions
and
2,137 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 |
---|---|---|
|
@@ -2,12 +2,12 @@ version: 2.1 | |
|
||
orbs: | ||
shellcheck: circleci/[email protected] | ||
windows: circleci/windows@2.2.0 | ||
windows: circleci/windows@5.0.0 | ||
|
||
executors: | ||
go: | ||
docker: | ||
- image: cimg/go:1.18 | ||
- image: cimg/go:1.20 | ||
environment: | ||
CGO_ENABLED: 0 | ||
mac: | ||
|
@@ -82,17 +82,22 @@ commands: | |
|
||
jobs: | ||
test_windows: | ||
executor: windows/default | ||
executor: | ||
name: windows/default | ||
shell: bash --login -eo pipefail | ||
steps: | ||
- run: git config --global core.autocrlf false | ||
- checkout | ||
- run: setx GOPATH %USERPROFILE%\go | ||
- run: go get gotest.tools/gotestsum | ||
- run: mkdir test_results | ||
|
||
- run: | ||
name: Run tests | ||
command: | | ||
C:\Users\circleci\go\bin\gotestsum.exe --junitfile test_results/windows.xml | ||
export GOBIN=/c/go/bin | ||
export PATH=$GOBIN:$PATH | ||
export TESTING="true" | ||
go install gotest.tools/gotestsum@latest | ||
gotestsum --junitfile test_results/windows.xml | ||
- store_test_results: | ||
path: test_results | ||
- store_artifacts: | ||
|
@@ -103,8 +108,8 @@ jobs: | |
- checkout | ||
- run: | | ||
brew update | ||
brew install go@1.18 | ||
echo 'export PATH="/usr/local/opt/go@1.18/bin:$PATH"' >> ~/.bash_profile | ||
brew install go@1.20 | ||
echo 'export PATH="/usr/local/opt/go@1.20/bin:$PATH"' >> ~/.bash_profile | ||
- gomod | ||
- run: make test | ||
build: | ||
|
@@ -133,7 +138,8 @@ jobs: | |
- run: | ||
command: bundle exec cucumber | ||
working_directory: integration_tests | ||
|
||
environment: | ||
TESTING: "true" | ||
test: | ||
executor: go | ||
steps: | ||
|
@@ -264,9 +270,9 @@ jobs: | |
brew-deploy: | ||
executor: mac | ||
environment: | ||
- USER: circleci | ||
- TRAVIS: circleci | ||
- DESTDIR: /Users/distiller/dest | ||
USER: circleci | ||
TRAVIS: circleci | ||
DESTDIR: /Users/distiller/dest | ||
steps: | ||
- checkout | ||
- force-http-1 | ||
|
@@ -329,6 +335,8 @@ workflows: | |
- brew-deploy: | ||
requires: | ||
- run-brew-deploy-gate | ||
context: | ||
- devex-release | ||
- deploy: | ||
requires: | ||
- test | ||
|
@@ -339,4 +347,6 @@ workflows: | |
- shellcheck/check | ||
filters: | ||
branches: | ||
only: master | ||
only: main | ||
context: | ||
- devex-release |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true |
Validating CODEOWNERS rules …
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,6 +1,5 @@ | ||
* @CircleCI-Public/Extensibility | ||
*orb*.go @CircleCI-Public/CPEng @CircleCI-Public/Extensibility | ||
* @CircleCI-Public/developer-experience | ||
*orb*.go @CircleCI-Public/orb-publishers @CircleCI-Public/developer-experience | ||
|
||
/api/runner @CircleCI-Public/runner | ||
/cmd/runner @CircleCI-Public/runner | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM cimg/go:1.18.3 | ||
FROM cimg/go:1.20 | ||
|
||
ENV CIRCLECI_CLI_SKIP_UPDATE_CHECK true | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
version: '3' | ||
|
||
tasks: | ||
lint: | ||
desc: Lint code | ||
cmds: | ||
- golangci-lint run -c .golangci.yml | ||
summary: Lint the project with golangci-lint | ||
|
||
clean: | ||
desc: Cleans out the build, out, docs, and dist directories | ||
cmds: | ||
- GO111MODULE=off go clean -i | ||
- rm -rf build out docs dist | ||
|
||
fmt: | ||
desc: Run `go fmt` to format the code | ||
cmds: | ||
- go fmt ./... | ||
|
||
test: | ||
desc: Run the tests | ||
cmds: | ||
- TESTING=true go test -v ./... | ||
|
||
tidy: | ||
desc: Run 'go mod tidy' to clean up module files. | ||
cmds: | ||
- go mod tidy -v | ||
|
||
doc: | ||
desc: run's the godocs | ||
cmds: | ||
- godoc -http=:6060 | ||
|
||
check-go-mod: | ||
desc: Check go.mod is tidy | ||
cmds: | ||
- go mod tidy -v | ||
- git diff --exit-code -- go.mod go.sum | ||
|
||
vendor: | ||
desc: go mod vendor | ||
cmds: | ||
- go mod vendor | ||
|
||
build: | ||
desc: Build main | ||
cmds: | ||
- go build -v -o build/darwin/amd64/circleci . | ||
|
||
build-linux: | ||
desc: Build main | ||
cmds: | ||
- go build -v -o build/linux/amd64/circleci . | ||
|
||
cover: | ||
desc: tests and generates a cover profile | ||
cmds: | ||
- TESTING=true go test -race -coverprofile=coverage.txt ./... |
Oops, something went wrong.