Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0acd857ab5 | |||
| fbb167a72b | |||
| eadeac40ae | |||
| 63c4a2fa79 | |||
| 301ccb018b | |||
| 8baad27ea5 | |||
| e4539737b9 | |||
| cdc64bef35 | |||
| 6cfe80da1f |
+6
-6
@@ -1,7 +1,7 @@
|
||||
include:
|
||||
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
||||
|
||||
image: golang:1.20.4
|
||||
image: golang:1.21.0
|
||||
|
||||
stages:
|
||||
- deps
|
||||
@@ -42,7 +42,7 @@ test:
|
||||
|
||||
vulnerabilities:
|
||||
stage: test
|
||||
image: golang:1.20.4
|
||||
image: golang:1.21.0
|
||||
script:
|
||||
- go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
- govulncheck ./...
|
||||
@@ -53,10 +53,10 @@ prepare_release:
|
||||
before_script:
|
||||
- npm install -g conventional-changelog-cli
|
||||
script:
|
||||
- echo "DESCRIPTION=$(conventional-changelog -p conventionalcommits)" > variables.env
|
||||
- conventional-changelog -p conventionalcommits > ./release.description
|
||||
artifacts:
|
||||
reports:
|
||||
dotenv: variables.env
|
||||
paths:
|
||||
- release.description
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
|
||||
@@ -70,6 +70,6 @@ release:
|
||||
- echo "Running release_job for $TAG"
|
||||
release:
|
||||
tag_name: '$CI_COMMIT_TAG'
|
||||
description: '$DESCRIPTION'
|
||||
description: ./release.description
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
|
||||
@@ -10,12 +10,8 @@ repos:
|
||||
args:
|
||||
- --allow-multiple-documents
|
||||
- id: check-added-large-files
|
||||
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
||||
rev: 3.0.0
|
||||
hooks:
|
||||
- id: markdownlint
|
||||
- repo: https://gitlab.com/devopshq/gitlab-ci-linter
|
||||
rev: v1.0.3
|
||||
rev: v1.0.5
|
||||
hooks:
|
||||
- id: gitlab-ci-linter
|
||||
args:
|
||||
@@ -41,6 +37,6 @@ repos:
|
||||
- id: go-test
|
||||
- id: gofumpt
|
||||
- repo: https://github.com/golangci/golangci-lint
|
||||
rev: v1.53.2
|
||||
rev: v1.54.2
|
||||
hooks:
|
||||
- id: golangci-lint
|
||||
|
||||
@@ -4,7 +4,7 @@ go 1.19
|
||||
|
||||
require (
|
||||
github.com/apex/log v1.9.0
|
||||
github.com/getsentry/sentry-go v0.21.0
|
||||
github.com/getsentry/sentry-go v0.24.0
|
||||
github.com/stretchr/testify v1.8.4
|
||||
gitlab.com/unboundsoftware/apex-mocks v0.2.0
|
||||
)
|
||||
|
||||
@@ -10,8 +10,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/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
|
||||
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
|
||||
github.com/getsentry/sentry-go v0.21.0 h1:c9l5F1nPF30JIppulk4veau90PK6Smu3abgVtVQWon4=
|
||||
github.com/getsentry/sentry-go v0.21.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY=
|
||||
github.com/getsentry/sentry-go v0.24.0 h1:02b7qEmJ56EHGe9KFgjArjU/vG/aywm7Efgu+iPc01Y=
|
||||
github.com/getsentry/sentry-go v0.24.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY=
|
||||
github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA=
|
||||
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
|
||||
@@ -17,8 +17,8 @@ var sentryInit = sentry.Init
|
||||
|
||||
func SetupSentry(logger log.Interface, releaseName string, args SentryConfig) error {
|
||||
if args.Disabled {
|
||||
logger.Info("Sentry disabled, skipping setup")
|
||||
return nil
|
||||
logger.Info("Sentry disabled, setup using empty options")
|
||||
return sentryInit(sentry.ClientOptions{})
|
||||
}
|
||||
if args.Environment == "" {
|
||||
return fmt.Errorf("no Sentry environment supplied, exiting")
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ func TestSetupSentry(t *testing.T) {
|
||||
},
|
||||
init: nil,
|
||||
wantErr: assert.NoError,
|
||||
wantLogged: []string{"info: Sentry disabled, skipping setup"},
|
||||
wantLogged: []string{"info: Sentry disabled, setup using empty options"},
|
||||
},
|
||||
{
|
||||
name: "no environment",
|
||||
|
||||
Reference in New Issue
Block a user