Skip to content

Commit

Permalink
buildkite pipeline updates, go bump, testify bump (#6)
Browse files Browse the repository at this point in the history
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
  • Loading branch information
golanglemonade authored Nov 24, 2024
1 parent b5d5588 commit f251b0f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 26 deletions.
29 changes: 9 additions & 20 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,17 @@ steps:
key: "go_test"
plugins:
- docker#v5.12.0:
image: golang:1.23.0
image: golang:1.23.3
command: ["go", "test", "-coverprofile=coverage.out", "./..."]
artifact_paths: ["coverage.out"]
- group: ":closed_lock_with_key: Security Checks"
depends_on: "tests"
key: "security"
steps:
- label: ":closed_lock_with_key: gosec"
key: "gosec"
plugins:
- docker#v5.12.0:
image: "registry.hub.docker.com/securego/gosec:2.20.0"
command: ["-no-fail", "-exclude-generated", "-fmt sonarqube", "-out", "results.txt", "./..."]
environment:
- "GOTOOLCHAIN=auto"
artifact_paths: ["results.txt"]
- label: ":github: upload PR reports"
key: "scan-upload-pr"
if: build.pull_request.id != null
depends_on: ["gosec", "go_test"]
depends_on: ["go_test"]
plugins:
- artifacts#v1.9.4:
download: "results.txt"
- cluster-secrets#v1.0.0:
variables:
SONAR_TOKEN: SONAR_TOKEN
- artifacts#v1.9.4:
download: "coverage.out"
step: "go_test"
Expand All @@ -54,10 +42,11 @@ steps:
- label: ":github: upload reports"
key: "scan-upload"
if: build.branch == "main"
depends_on: ["gosec", "go_test"]
depends_on: ["go_test"]
plugins:
- artifacts#v1.9.4:
download: results.txt
- cluster-secrets#v1.0.0:
variables:
SONAR_TOKEN: SONAR_TOKEN
- artifacts#v1.9.4:
download: coverage.out
step: "go_test"
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/theopenlane/go-turso

go 1.23.0
go 1.23.3

require (
github.com/stretchr/testify v1.9.0
github.com/stretchr/testify v1.10.0
github.com/xhit/go-str2duration/v2 v2.1.0
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc=
github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
Expand Down
3 changes: 1 addition & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ sonar.test.inclusions=*_test.go
sonar.exclusions=

sonar.sourceEncoding=UTF-8
sonar.go.coverage.reportPaths=coverage.out
sonar.externalIssuesReportPaths=results.txt
sonar.go.coverage.reportPaths=coverage.out

0 comments on commit f251b0f

Please sign in to comment.