Skip to content

Commit

Permalink
added binaries as release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-ares committed May 20, 2024
1 parent 3b69853 commit 6024218
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
with:
go-version: ${{ steps.findLatestGoVersion.outputs.latestGoVersion }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: latest
- name: Slack Notification For Failure/Cancellation
Expand Down
2 changes: 1 addition & 1 deletion analytics/analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (s *trackActionSource) Process(ctx context.Context, msg *messagebroker.Mess
}

func (p *processor) startOldTrackedActionsCleaner(ctx context.Context) {
ticker := stdlibtime.NewTicker(stdlibtime.Duration(1+rand.Intn(24)) * stdlibtime.Minute) //nolint:gosec,gomnd // Not an issue.
ticker := stdlibtime.NewTicker(stdlibtime.Duration(1+rand.Intn(24)) * stdlibtime.Minute) //nolint:gosec,gomnd,mnd // Not an issue.
defer ticker.Stop()

for {
Expand Down
2 changes: 1 addition & 1 deletion cmd/husky/news.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (s *service) GetNews( //nolint:gocritic,funlen // False negative.
if req.Data.Limit == 0 {
req.Data.Limit = 10
}
if req.Data.Limit > 1000 { //nolint:gomnd //.
if req.Data.Limit > 1000 { //nolint:gomnd,mnd //.
req.Data.Limit = 1000
}
req.Data.Language = strings.ToLower(req.Data.Language)
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ require (
golang.org/x/tools v0.21.0 // indirect
google.golang.org/api v0.181.0 // indirect
google.golang.org/appengine/v2 v2.0.6 // indirect
google.golang.org/genproto v0.0.0-20240515191416-fc5f0ca64291 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240515191416-fc5f0ca64291 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240515191416-fc5f0ca64291 // indirect
google.golang.org/genproto v0.0.0-20240520151616-dc85e6b867a5 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240520151616-dc85e6b867a5 // indirect
google.golang.org/grpc v1.64.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
Expand Down
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -468,12 +468,12 @@ google.golang.org/appengine/v2 v2.0.6/go.mod h1:WoEXGoXNfa0mLvaH5sV3ZSGXwVmy8yf7
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
google.golang.org/genproto v0.0.0-20240515191416-fc5f0ca64291 h1:CTZGpOdDJr2Jq+LcJ/mpjG8mClGy/uJdBBVYbS9g5lY=
google.golang.org/genproto v0.0.0-20240515191416-fc5f0ca64291/go.mod h1:ch5ZrEj5+9MCxUeR3Gp3mCJ4u0eVpusYAmSr/mvpMSk=
google.golang.org/genproto/googleapis/api v0.0.0-20240515191416-fc5f0ca64291 h1:4HZJ3Xv1cmrJ+0aFo304Zn79ur1HMxptAE7aCPNLSqc=
google.golang.org/genproto/googleapis/api v0.0.0-20240515191416-fc5f0ca64291/go.mod h1:RGnPtTG7r4i8sPlNyDeikXF99hMM+hN6QMm4ooG9g2g=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240515191416-fc5f0ca64291 h1:AgADTJarZTBqgjiUzRgfaBchgYB3/WFTC80GPwsMcRI=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240515191416-fc5f0ca64291/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0=
google.golang.org/genproto v0.0.0-20240520151616-dc85e6b867a5 h1:IGsMFz879l+GhhDJ9fN5rWnkVrGnoZv8oeYfpk82QZQ=
google.golang.org/genproto v0.0.0-20240520151616-dc85e6b867a5/go.mod h1:ch5ZrEj5+9MCxUeR3Gp3mCJ4u0eVpusYAmSr/mvpMSk=
google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5 h1:P8OJ/WCl/Xo4E4zoe4/bifHpSmmKwARqyqE4nW6J2GQ=
google.golang.org/genproto/googleapis/api v0.0.0-20240520151616-dc85e6b867a5/go.mod h1:RGnPtTG7r4i8sPlNyDeikXF99hMM+hN6QMm4ooG9g2g=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240520151616-dc85e6b867a5 h1:Q2RxlXqh1cgzzUgV261vBO2jI5R/3DD1J2pM0nI4NhU=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240520151616-dc85e6b867a5/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
Expand Down
4 changes: 2 additions & 2 deletions news/fixture/fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ func newMBConnector() messagebrokerfixture.TestConnector {
return messagebrokerfixture.NewTestConnector(applicationYAMLKey, TestConnectorsOrder)
}

func RContainerMounts() []func(projectRoot string) testcontainers.ContainerMount { //nolint:typecheck // .
func RContainerMounts() []func(projectRoot string) testcontainers.ContainerMount {
return nil
}

func WContainerMounts() []func(projectRoot string) testcontainers.ContainerMount { //nolint:typecheck // .
func WContainerMounts() []func(projectRoot string) testcontainers.ContainerMount {
return nil
}
4 changes: 2 additions & 2 deletions news/news.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (r *repository) sendTaggedNewsSnapshotMessage(ctx context.Context, ss *Tagg
}
var key string
if ss.TaggedNews == nil {
key = ss.Before.ID + "~~~" + ss.Before.Language //nolint:goconst //.
key = ss.Before.ID + "~~~" + ss.Before.Language
} else {
key = ss.ID + "~~~" + ss.Language
}
Expand All @@ -214,7 +214,7 @@ func (r *repository) sendTaggedNewsSnapshotMessage(ctx context.Context, ss *Tagg
}

func (p *processor) startNewsViewsUpdater(ctx context.Context) {
ticker := stdlibtime.NewTicker(stdlibtime.Duration(10*(1+rand.Intn(10))) * stdlibtime.Second) //nolint:gosec,gomnd // Not an issue.
ticker := stdlibtime.NewTicker(stdlibtime.Duration(10*(1+rand.Intn(10))) * stdlibtime.Second) //nolint:gosec,gomnd,mnd // Not an issue.
defer ticker.Stop()

for {
Expand Down
2 changes: 1 addition & 1 deletion news/news_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (r *repository) insertNews(ctx context.Context, news []*TaggedNews) error {
nws.Title, nws.ImageURL, nws.URL,
)
values = append(values, fmt.Sprintf("($%[1]v,$%[2]v,$%[3]v,$%[4]v,$%[5]v,$%[6]v,$%[7]v,$%[8]v,$%[9]v)",
fields*ix+1, fields*ix+2, fields*ix+3, fields*ix+4, fields*ix+5, fields*ix+6, fields*ix+7, fields*ix+8, fields*ix+9)) //nolint:gomnd // .
fields*ix+1, fields*ix+2, fields*ix+3, fields*ix+4, fields*ix+5, fields*ix+6, fields*ix+7, fields*ix+8, fields*ix+9)) //nolint:gomnd,mnd // .
}
sql := fmt.Sprintf(`INSERT INTO news (CREATED_AT, UPDATED_AT, NOTIFICATION_CHANNELS, ID, TYPE, LANGUAGE, TITLE, IMAGE_URL, URL) VALUES %v`, strings.Join(values, ",")) //nolint:lll // .
if _, err := storage.Exec(ctx, r.db, sql, args...); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion news/seeding/seeding.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func generateNews(db tarantool.Connector) { //nolint:funlen // .
insertTag(db, now, language, fmt.Sprintf("testing%v", now))
}
const items = 100
for ix := 0; ix < items; ix++ {
for ix := range items {
nws := make([]*news.TaggedNews, 0, (items+1+1)*len(languages))
if ix%(items/(1+1)) == 0 {
id := uuid.NewString()
Expand Down
2 changes: 1 addition & 1 deletion news/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (r *repository) addNewsTagsPerNews(ctx context.Context, news ...*TaggedNews
}
for _, tag := range *nws.Tags {
args = append(args, nws.CreatedAt.Time, nws.ID, nws.Language, tag)
values = append(values, fmt.Sprintf(`($%[1]v, $%[2]v, $%[3]v, $%[4]v)`, nextIdx+1, nextIdx+2, nextIdx+3, nextIdx+4)) //nolint:gomnd // .
values = append(values, fmt.Sprintf(`($%[1]v, $%[2]v, $%[3]v, $%[4]v)`, nextIdx+1, nextIdx+2, nextIdx+3, nextIdx+4)) //nolint:gomnd,mnd // .
nextIdx += fields
}
}
Expand Down
4 changes: 2 additions & 2 deletions notifications/fixture/fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ func newMBConnector() messagebrokerfixture.TestConnector {
return messagebrokerfixture.NewTestConnector(applicationYAMLKey, TestConnectorsOrder)
}

func RContainerMounts() []func(projectRoot string) testcontainers.ContainerMount { //nolint:typecheck // .
func RContainerMounts() []func(projectRoot string) testcontainers.ContainerMount {
return nil
}

func WContainerMounts() []func(projectRoot string) testcontainers.ContainerMount { //nolint:typecheck // .
func WContainerMounts() []func(projectRoot string) testcontainers.ContainerMount {
return nil
}
4 changes: 2 additions & 2 deletions notifications/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (p *processor) CheckHealth(ctx context.Context) error {
}

func (p *processor) startOldSentNotificationsCleaner(ctx context.Context) {
ticker := stdlibtime.NewTicker(stdlibtime.Duration(1+rand.Intn(24)) * stdlibtime.Minute) //nolint:gosec,gomnd // Not an issue.
ticker := stdlibtime.NewTicker(stdlibtime.Duration(1+rand.Intn(24)) * stdlibtime.Minute) //nolint:gosec,gomnd,mnd // Not an issue.
defer ticker.Stop()

for {
Expand All @@ -142,7 +142,7 @@ func (p *processor) startOldSentNotificationsCleaner(ctx context.Context) {
}

func (p *processor) startOldSentAnnouncementsCleaner(ctx context.Context) {
ticker := stdlibtime.NewTicker(stdlibtime.Duration(1+rand.Intn(24)) * stdlibtime.Minute) //nolint:gosec,gomnd // Not an issue.
ticker := stdlibtime.NewTicker(stdlibtime.Duration(1+rand.Intn(24)) * stdlibtime.Minute) //nolint:gosec,gomnd,mnd // Not an issue.
defer ticker.Stop()

for {
Expand Down
4 changes: 2 additions & 2 deletions notifications/seeding/seeding.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ func dbConnector() tarantool.Connector {
parts := strings.Split(os.Getenv("MASTER_DB_INSTANCE_ADDRESS"), "@")
userAndPass := strings.Split(parts[0], ":")
opts := tarantool.Opts{
Timeout: 20 * stdlibtime.Second, //nolint:gomnd // It doesnt matter here.
Timeout: 20 * stdlibtime.Second, //nolint:gomnd,mnd // It doesnt matter here.
Reconnect: stdlibtime.Millisecond,
MaxReconnects: 10, //nolint:gomnd // It doesnt matter here.
MaxReconnects: 10, //nolint:gomnd,mnd // It doesnt matter here.
User: userAndPass[0],
Pass: userAndPass[1],
}
Expand Down

0 comments on commit 6024218

Please sign in to comment.