-
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 'master' into doco-tweaks
- Loading branch information
Showing
83 changed files
with
5,367 additions
and
332 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,14 +1,13 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
codecov: codecov/[email protected] | ||
shellcheck: circleci/[email protected] | ||
windows: circleci/[email protected] | ||
|
||
executors: | ||
go: | ||
docker: | ||
- image: circleci/golang:1.17 | ||
- image: cimg/go:1.18 | ||
environment: | ||
CGO_ENABLED: 0 | ||
mac: | ||
|
@@ -23,11 +22,10 @@ commands: | |
force-http-1: | ||
steps: | ||
- run: | ||
# Uploading to codecov has been failing due to HTTP 2.0 issues. | ||
# https://app.circleci.com/jobs/github/CircleCI-Public/circleci-cli/6480 | ||
# curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) | ||
# The issue seems to be on the server-side, so force HTTP 1.1 | ||
name: "cURL: Force HTTP 1.1" | ||
name: 'cURL: Force HTTP 1.1' | ||
command: echo '--http1.1' >> ~/.curlrc | ||
build-docker-image: | ||
steps: | ||
|
@@ -51,7 +49,7 @@ commands: | |
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- "dist" | ||
- 'dist' | ||
- store_artifacts: | ||
path: ./dist | ||
destination: dist | ||
|
@@ -62,7 +60,7 @@ commands: | |
default: https://github.com/goreleaser/goreleaser/releases/download/v0.127.0/goreleaser_amd64.deb | ||
steps: | ||
- restore_cache: | ||
keys: [v4-goreleaser-] | ||
keys: [v5-goreleaser-] | ||
- run: | ||
name: Install GoReleaser | ||
command: | | ||
|
@@ -72,7 +70,7 @@ commands: | |
gomod: | ||
steps: | ||
- restore_cache: | ||
keys: ["v2-gomod-{{ arch }}-"] | ||
keys: ['v3-gomod-{{ arch }}-'] | ||
- run: | ||
name: Download go module dependencies | ||
command: go mod download | ||
|
@@ -104,8 +102,9 @@ jobs: | |
steps: | ||
- checkout | ||
- run: | | ||
brew install [email protected] | ||
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile | ||
brew update | ||
brew install [email protected] | ||
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile | ||
- gomod | ||
- run: make test | ||
build: | ||
|
@@ -117,7 +116,7 @@ jobs: | |
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- "build" | ||
- 'build' | ||
cucumber: | ||
docker: | ||
- image: cimg/ruby:2.7 | ||
|
@@ -126,7 +125,7 @@ jobs: | |
- attach_workspace: | ||
at: . | ||
- run: | ||
name: "Install CLI tool from workspace" | ||
name: 'Install CLI tool from workspace' | ||
command: sudo cp ~/project/build/linux/amd64/circleci /usr/local/bin/ | ||
- run: | ||
command: bundle install | ||
|
@@ -154,14 +153,16 @@ jobs: | |
- store_artifacts: | ||
path: ./coverage.txt | ||
destination: coverage.txt | ||
- codecov/upload: | ||
file: coverage.txt | ||
|
||
docs: | ||
executor: go | ||
steps: | ||
- checkout | ||
- run: sudo apt-get install pandoc | ||
- run: | ||
name: Install pandoc | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get install pandoc | ||
- gomod | ||
- run: go run main.go usage | ||
- store_artifacts: | ||
|
@@ -171,12 +172,12 @@ jobs: | |
- run: ./.circleci/deploy-gh-pages.sh | ||
|
||
lint: | ||
executor: go | ||
docker: | ||
- image: golangci/golangci-lint:v1.46-alpine | ||
resource_class: large | ||
steps: | ||
- checkout | ||
- run: make install-lint | ||
- run: make build | ||
- run: make lint | ||
- run: golangci-lint run | ||
|
||
deploy-test: | ||
executor: go | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,2 +1,6 @@ | ||
* @CircleCI-Public/EcoSystem | ||
*orb*.go @CircleCI-Public/CPEng @CircleCI-Public/EcoSystem | ||
* @CircleCI-Public/Extensibility | ||
*orb*.go @CircleCI-Public/CPEng @CircleCI-Public/Extensibility | ||
|
||
/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
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,36 @@ | ||
--- | ||
service: | ||
golangci-lint-version: 1.46.x | ||
|
||
linters: | ||
enable: | ||
- deadcode | ||
- errcheck | ||
- goconst | ||
- gofmt | ||
- goimports | ||
# - gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- megacheck | ||
- misspell | ||
- nakedret | ||
# - revive | ||
- staticcheck | ||
- structcheck | ||
- typecheck | ||
- unconvert | ||
# - unparam | ||
- unused | ||
- varcheck | ||
- vet | ||
- vetshadow | ||
|
||
# Instead of disabling tests entirely, just ignore goconst, which is the only | ||
# one with issues there currently. | ||
issues: | ||
exclude-rules: | ||
- path: (.+)_test.go | ||
linters: | ||
- goconst |
This file was deleted.
Oops, something went wrong.
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 circleci/golang:1.10.3 | ||
FROM cimg/go:1.18.3 | ||
|
||
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
Oops, something went wrong.