Skip to content

Commit

Permalink
fix(deps): update module github.com/theopenlane/core to v0.1.9 (#16)
Browse files Browse the repository at this point in the history
* fix(deps): update module github.com/theopenlane/core to v0.1.9

* update bk pipeline to use build-image:latest

Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>

* fix typo image

Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>

* fix ident

Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>

* correct task command for cli build

Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>

---------

Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
  • Loading branch information
renovate[bot] and golanglemonade authored Sep 11, 2024
1 parent 0f89d94 commit 9bc7ea8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 16 deletions.
31 changes: 19 additions & 12 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ steps:
key: "generate"
plugins:
- docker#v5.11.0:
image: "ghcr.io/theopenlane/build-image:v0.1.2"
image: "ghcr.io/theopenlane/build-image:latest"
always-pull: true
command: ["task", "ci"]
environment:
- "GOTOOLCHAIN=auto"
- label: ":yaml: generate config"
key: "generate_config"
plugins:
- docker#v5.11.0:
image: "ghcr.io/theopenlane/build-image:v0.1.2"
image: "ghcr.io/theopenlane/build-image:latest"
always-pull: true
command: ["task", "config:ci"]
environment:
- "GOTOOLCHAIN=auto"
Expand All @@ -32,8 +34,9 @@ steps:
key: "lint"
plugins:
- docker#v5.11.0:
image: "golangci-lint:latest-alpine"
command: ["golangci-lint", "run", "-v"]
image: "ghcr.io/theopenlane/build-image:latest"
always-pull: true
command: ["task", "go:lint"]
always-pull: true
environment:
- "GOTOOLCHAIN=auto"
Expand All @@ -43,8 +46,9 @@ steps:
TEST_DB_URL: "libsql://file::memory:?cache=shared"
plugins:
- docker#v5.11.0:
image: golang:1.23.0
command: ["go", "test", "-coverprofile=coverage.out", "./..."]
image: "ghcr.io/theopenlane/build-image:latest"
always-pull: true
command: ["task", "go:test:cover"]
environment:
- "TEST_DB_URL"
artifact_paths: ["coverage.out"]
Expand All @@ -58,8 +62,9 @@ steps:
- "sqlite://file:ent?mode=memory&cache=shared"
plugins:
- docker#v5.11.0:
image: golang:1.23.0
command: ["go", "test", "-coverprofile=coverage.out", "./..."]
image: "ghcr.io/theopenlane/build-image:latest"
always-pull: true
command: ["task", "go:test:cover"]
environment:
- "TEST_DB_URL"
- "TEST_DB_CONTAINER_EXPIRY=8" # container expiry in minutes
Expand Down Expand Up @@ -120,21 +125,23 @@ steps:
artifact_paths: "bin/${APP_NAME}"
plugins:
- docker#v5.11.0:
image: "golang:1.23.0"
image: "ghcr.io/theopenlane/build-image:latest"
always-pull: true
command: ["task", "go:build"]
environment:
- CGO_ENABLED=0
- GOOS=linux
command: ["go", "build", "-buildvcs=false", "-mod=mod", "-a", "-o", "bin/$APP_NAME"]
- label: ":terminal: build cli"
key: "gobuild-cli"
artifact_paths: "bin/${APP_NAME}-cli"
plugins:
- docker#v5.11.0:
image: "golang:1.23.0"
image: "ghcr.io/theopenlane/build-image:latest"
always-pull: true
command: ["task", "go:build-cli"]
environment:
- GOOS=darwin
- GOARCH=arm64
command: ["go", "build", "-buildvcs=false", "-mod=mod", "-a", "-o", "bin/${APP_NAME}-cli", "./cmd/cli"]
- group: ":docker: Image Build"
depends_on: "go-builds"
key: "image-build"
Expand Down
7 changes: 7 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ env:
TEST_FGA_URL: "localhost:8080"
ENV: config
GODEBUG: gotypesalias=0 # remove once the backport fixes the types.Alias bug
GOFLAGS: -buildvcs=false

tasks:
install:
Expand Down Expand Up @@ -60,6 +61,12 @@ tasks:
aliases: [cover]
cmds:
- go test -v ./... -coverprofile=coverage.out

go:test:cover:out:
desc: runs and outputs results of created go tests with coverage
aliases: [cover]
cmds:
- task: go:test:cover
- go tool cover -html=coverage.out

go:fmt:
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/theopenlane/dbx

go 1.23.0
go 1.23.1

require (
ariga.io/entcache v0.1.0
Expand Down Expand Up @@ -30,7 +30,7 @@ require (
github.com/spf13/viper v1.19.0
github.com/stretchr/testify v1.9.0
github.com/theopenlane/beacon v0.1.0
github.com/theopenlane/core v0.1.8
github.com/theopenlane/core v0.1.9
github.com/theopenlane/echo-prometheus v0.1.0
github.com/theopenlane/echox v0.1.0
github.com/theopenlane/echozap v0.1.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
github.com/theopenlane/beacon v0.1.0 h1:cyGx18rbaJTZT8pRcqMMvg+kN6uh86X4OoDahQp6VnE=
github.com/theopenlane/beacon v0.1.0/go.mod h1:gOJAanQzfmDF3FIyv7Lwx16bKI7YPkJx1iRT4SdcBW4=
github.com/theopenlane/core v0.1.8 h1:Y0ak+RV9y6hKhXPUoamwtgiobWbB20I+r0t34JA2X5s=
github.com/theopenlane/core v0.1.8/go.mod h1:MaKjCxa3jgrGdv1xWu99npJRWUcvFvBiyWCq8wsLER0=
github.com/theopenlane/core v0.1.9 h1:1D34xKoqKMqrRoiPjNru/CHpsOvKB9fiLLJFfpmOVos=
github.com/theopenlane/core v0.1.9/go.mod h1:z5sNm0rEmP3dASfbLxFnEZWviur0vdtVLqs1TNSK+bs=
github.com/theopenlane/echo-prometheus v0.1.0 h1:1zMejBVHe5w4zLHS+k5FV9S/46QBiwO6ggTSKi6r/7E=
github.com/theopenlane/echo-prometheus v0.1.0/go.mod h1:Eiiv1ZLXKMsteQ3T+H1tFfSSZuXSvQfZp95qr5hmGkA=
github.com/theopenlane/echox v0.1.0 h1:y4Z2shaODCLwXHsHBrY/EkH/2sIuo49xdIfxx7h+Zvg=
Expand Down

0 comments on commit 9bc7ea8

Please sign in to comment.