Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
demdxx committed Nov 14, 2022
1 parent 4fe0afc commit ded7c47
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 194 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/golangci-lint.yml

This file was deleted.

63 changes: 39 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,76 @@
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
branches:
- master
- main

name: run tests
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18.x
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run linters
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
version: v1.29
version: v1.48.0
skip-cache: true
args: --fix

test:
needs: lint
strategy:
matrix:
go-version: [1.18.x]
go-version: [1.18.x, 1.19.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run tests
run: go test -v -covermode=count

coverage:
runs-on: ubuntu-latest
needs: test
strategy:
fail-fast: false
matrix:
go-version: [1.18.x, 1.19.x]
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v2
with:
go-version: 1.18.x
- name: Checkout code
uses: actions/checkout@v2
- name: Calc coverage
run: |
go test -v -covermode=count -coverprofile=coverage.out ./...
- name: Convert coverage.out to coverage.lcov
uses: jandelgado/[email protected]
- name: Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- run: go test -v -coverprofile=profile.cov ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
flag-name: Go-${{ matrix.go-version }}
parallel: true

# notifies that all test jobs are finished.
finish:
needs: coverage
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
55 changes: 29 additions & 26 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,55 @@ module github.com/geniusrabbit/notificationcenter/v2
go 1.18

require (
github.com/Shopify/sarama v1.32.0
github.com/alicebob/miniredis/v2 v2.15.1
github.com/Shopify/sarama v1.37.2
github.com/alicebob/miniredis/v2 v2.23.1
github.com/allegro/bigcache v1.2.1
github.com/demdxx/gocast v1.2.0
github.com/demdxx/gocast/v2 v2.0.0-alpha
github.com/demdxx/rpool/v2 v2.0.1
github.com/elliotchance/redismock/v8 v8.11.0
github.com/go-redis/redis/v8 v8.11.4
github.com/elliotchance/redismock/v8 v8.11.1
github.com/go-redis/redis/v8 v8.11.5
github.com/golang/mock v1.6.0
github.com/lib/pq v1.10.4
github.com/nats-io/nats.go v1.13.1-0.20220308171302-2f2f6968e98d
github.com/nats-io/stan.go v0.10.2
github.com/lib/pq v1.10.7
github.com/nats-io/nats.go v1.20.0
github.com/nats-io/stan.go v0.10.3
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.7.0
go.uber.org/multierr v1.7.0
github.com/stretchr/testify v1.8.1
go.uber.org/multierr v1.8.0
)

require (
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/eapache/go-resiliency v1.2.0 // indirect
github.com/eapache/go-resiliency v1.3.0 // indirect
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect
github.com/eapache/queue v1.1.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/hashicorp/go-uuid v1.0.2 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
github.com/jcmturner/gofork v1.0.0 // indirect
github.com/jcmturner/gokrb5/v8 v8.4.2 // indirect
github.com/jcmturner/gofork v1.7.6 // indirect
github.com/jcmturner/gokrb5/v8 v8.4.3 // indirect
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
github.com/klauspost/compress v1.14.4 // indirect
github.com/nats-io/nats-server/v2 v2.7.4 // indirect
github.com/nats-io/nats-streaming-server v0.24.1 // indirect
github.com/klauspost/compress v1.15.12 // indirect
github.com/nats-io/nats-server/v2 v2.9.6 // indirect
github.com/nats-io/nats-streaming-server v0.25.2 // indirect
github.com/nats-io/nkeys v0.3.0 // indirect
github.com/nats-io/nuid v1.0.1 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.18.1 // indirect
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
github.com/onsi/gomega v1.24.1 // indirect
github.com/pierrec/lz4/v4 v4.1.17 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/stretchr/objx v0.1.0 // indirect
github.com/yuin/gopher-lua v0.0.0-20210529063254-f4c35e4016d9 // indirect
go.uber.org/atomic v1.7.0 // indirect
golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd // indirect
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/yuin/gopher-lua v0.0.0-20220504180219-658193537a64 // indirect
go.uber.org/atomic v1.10.0 // indirect
golang.org/x/crypto v0.2.0 // indirect
golang.org/x/exp v0.0.0-20221114172223-0cf76af32a3a // indirect
golang.org/x/net v0.2.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit ded7c47

Please sign in to comment.