Skip to content
This repository was archived by the owner on May 18, 2022. It is now read-only.

Commit d8cfb7f

Browse files
committed
Latest dependencies; standardized Makefiles; enabled Github Actions.
1 parent 42d93cb commit d8cfb7f

File tree

4 files changed

+45
-26
lines changed

4 files changed

+45
-26
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-go@v2
14+
- uses: actions/cache@v1
15+
with:
16+
path: ~/go/pkg/mod
17+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
18+
restore-keys: |
19+
${{ runner.os }}-go-
20+
21+
- run: make build

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/usr/bin/make -f
22

3-
test:
4-
go test -timeout=1s -covermode=atomic .
3+
test: fmt
4+
go test -timeout=1s -covermode=atomic -count=1 ./...
5+
6+
fmt:
7+
go fmt ./...
58

69
compile:
710
go build ./...
811

912
build: test compile
1013

11-
lint:
12-
@golangci-lint run
13-
14-
.PHONY: test compile build lint
14+
.PHONY: test fmt compile build

go.mod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ module github.com/smartystreets/messaging-rabbitmq
33
go 1.13
44

55
require (
6-
github.com/smartystreets/assertions v1.0.1
7-
github.com/smartystreets/clock v1.0.2
8-
github.com/smartystreets/gunit v1.3.2
9-
github.com/smartystreets/logging v1.1.0
10-
github.com/smartystreets/messaging/v2 v2.1.0
11-
github.com/streadway/amqp v0.0.0-20200108173154-1c71cc93ed71
6+
github.com/smartystreets/assertions v1.1.0
7+
github.com/smartystreets/clock v1.0.3
8+
github.com/smartystreets/gunit v1.3.4
9+
github.com/smartystreets/logging v1.1.1
10+
github.com/smartystreets/messaging/v2 v2.1.1
11+
github.com/streadway/amqp v1.0.0
1212
)

go.sum

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
github.com/smartystreets/assertions v1.0.1 h1:voD4ITNjPL5jjBfgR/r8fPIIBrliWrWHeiJApdr3r4w=
2-
github.com/smartystreets/assertions v1.0.1/go.mod h1:kHHU4qYBaI3q23Pp3VPrmWhuIUrLW/7eUrw0BU5VaoM=
3-
github.com/smartystreets/clock v1.0.2 h1:ioYzGv1YKc98/mh3yr5o0yCFnUAg3iCn7SF8ReEX4B8=
4-
github.com/smartystreets/clock v1.0.2/go.mod h1:MY7Okg1nJRQ/rBssrYg2Rn3fi3FatgjHl1DwIq/GRK8=
5-
github.com/smartystreets/gunit v1.1.3 h1:32x+htJCu3aMswhPw3teoJ+PnWPONqdNgaGs6Qt8ZaU=
6-
github.com/smartystreets/gunit v1.1.3/go.mod h1:EH5qMBab2UclzXUcpR8b93eHsIlp9u+pDQIRp5DZNzQ=
7-
github.com/smartystreets/gunit v1.3.2 h1:rIn+6hLru7YnR+KO4iBRUeAyDV2FQR17j9PpvHKkkzM=
8-
github.com/smartystreets/gunit v1.3.2/go.mod h1:43891Rs2H/qaAz366FXE38Ic7BwyM7E5FO5IB+kliJs=
9-
github.com/smartystreets/logging v1.1.0 h1:l+ufYYAt9NyT6K+54lL2Bn6HelBtL59nHLkvQLxGyP8=
10-
github.com/smartystreets/logging v1.1.0/go.mod h1:pxtHpn+XVAg8SjodfpmE6+kgU3CAgWLY7TRjUIiUZdM=
11-
github.com/smartystreets/messaging/v2 v2.1.0 h1:zhiH8FZ1pFdOD6jtG4GRGqq+KAVNdgt4L/Q3HZTAe0I=
12-
github.com/smartystreets/messaging/v2 v2.1.0/go.mod h1:0MLZitMtUNxO6oa0LS4AAhVez6qLViNbvy/wUwU/Mdk=
13-
github.com/streadway/amqp v0.0.0-20200108173154-1c71cc93ed71 h1:2MR0pKUzlP3SGgj5NYJe/zRYDwOu9ku6YHy+Iw7l5DM=
14-
github.com/streadway/amqp v0.0.0-20200108173154-1c71cc93ed71/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
1+
github.com/smartystreets/assertions v1.1.0 h1:MkTeG1DMwsrdH7QtLXy5W+fUxWq+vmb6cLmyJ7aRtF0=
2+
github.com/smartystreets/assertions v1.1.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo=
3+
github.com/smartystreets/clock v1.0.3 h1:rZ2gtRux+yALko49BywVFcrWcfRg8V86Q+wwYP+SCWs=
4+
github.com/smartystreets/clock v1.0.3/go.mod h1:SeXxrsL1+0aE4256nYPPBWwuA9BGfiXu5+bxfXFsPGA=
5+
github.com/smartystreets/gunit v1.3.4 h1:iHc8Rfhb/uCOc9a3KGuD3ut22L+hLIVaqR1o5fS6zC4=
6+
github.com/smartystreets/gunit v1.3.4/go.mod h1:ZjM1ozSIMJlAz/ay4SG8PeKF00ckUp+zMHZXV9/bvak=
7+
github.com/smartystreets/logging v1.1.1 h1:4UlnyYWB7LDd216NTuP3zTVvMQZREtPrDnJbsz0zftI=
8+
github.com/smartystreets/logging v1.1.1/go.mod h1:NwFCEPbtiTIug+UCtTbDVjgcJNfandE3brDx0x7QEY8=
9+
github.com/smartystreets/messaging/v2 v2.1.1 h1:MHUEqjipTunn+WAhZNS3X2NaEa8fbmblq02Nm4axtv4=
10+
github.com/smartystreets/messaging/v2 v2.1.1/go.mod h1:lrkr2tLUWYxZxeaoTIIUnYP66Vr3uedhdjjH9On3toY=
11+
github.com/streadway/amqp v1.0.0 h1:kuuDrUJFZL1QYL9hUNuCxNObNzB0bV/ZG5jV3RWAQgo=
12+
github.com/streadway/amqp v1.0.0/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=

0 commit comments

Comments
 (0)