-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from buildkite/include-escaped-interpolations-…
…in-identifiers-2 Include escaped interpolations in identifiers
- Loading branch information
Showing
9 changed files
with
167 additions
and
19 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
steps: | ||
- name: ":go::robot_face: Lint" | ||
key: lint | ||
command: .buildkite/steps/lint.sh | ||
plugins: | ||
- docker#v5.11.0: | ||
image: "golang:1.22" | ||
|
||
- name: ":go::test_tube: Test" | ||
key: test | ||
command: ".buildkite/steps/test.sh" | ||
artifact_paths: junit-*.xml | ||
plugins: | ||
- docker#v5.11.0: | ||
image: "golang:1.22" | ||
propagate-environment: true | ||
- artifacts#v1.9.0: | ||
upload: "cover.{html,out}" | ||
|
||
- label: ":writing_hand: Annotate with Test Failures" | ||
key: annotate | ||
depends_on: test | ||
allow_dependency_failure: true | ||
plugins: | ||
- junit-annotate#v1.6.0: | ||
artifacts: junit-*.xml |
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,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -Eeufo pipefail | ||
|
||
echo --- :go: Checking go mod tidiness | ||
go mod tidy | ||
if ! git diff --no-ext-diff --exit-code; then | ||
echo ^^^ +++ | ||
echo "The go.mod or go.sum files are out of sync with the source code" | ||
echo "Please run \`go mod tidy\` locally, and commit the result." | ||
|
||
exit 1 | ||
fi | ||
|
||
echo --- :go: Checking go formatting | ||
gofmt -w . | ||
if ! git diff --no-ext-diff --exit-code; then | ||
echo ^^^ +++ | ||
echo "Files have not been formatted with gofmt." | ||
echo "Fix this by running \`go fmt ./...\` locally, and committing the result." | ||
|
||
exit 1 | ||
fi | ||
|
||
echo +++ Everything is clean and tidy! 🎉 |
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,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -Eeuo pipefail | ||
|
||
go install gotest.tools/[email protected] | ||
|
||
echo '+++ Running tests' | ||
gotestsum --junitfile "junit-${BUILDKITE_JOB_ID}.xml" -- -count=1 -coverprofile=cover.out -race "$@" ./... | ||
|
||
echo 'Producing coverage report' | ||
go tool cover -html cover.out -o cover.html |
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 +1,3 @@ | ||
module github.com/buildkite/interpolate | ||
|
||
go 1.22.3 |
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
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