Skip to content

Commit

Permalink
This library is not yet to a stable release
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwest-wk committed Nov 18, 2020
1 parent 3469229 commit 23cc326
Show file tree
Hide file tree
Showing 37 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ go:
before_install: go get golang.org/x/tools/cmd/cover
script:
- go test -cover ./...
- cd v2
- cd v1
- go test -cover ./...

notifications:
Expand Down
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN eval "$(ssh-agent -s)" && \

ENV GOPATH=/go
ENV BUILD_PATH=$GOPATH/src/github.com/Workiva/go-rest
ENV V2=$BUILD_PATH/v2
ENV V1=$BUILD_PATH/v1

WORKDIR $BUILD_PATH

Expand All @@ -22,29 +22,29 @@ COPY go.sum $BUILD_PATH/
COPY rest $BUILD_PATH/rest

# v2
COPY v2/go.mod $V2/
COPY v2/go.sum $V2/
COPY v2/rest $V2/rest
COPY v1/go.mod $V1/
COPY v1/go.sum $V1/
COPY v1/rest $V1/rest

RUN test -z $(go fmt ./...)

# v1 - check formatting, build, test
# v0 - check formatting, build, test
RUN go mod download
RUN test -z $(go mod tidy -v)
RUN go mod verify
RUN go build ./...
RUN go test ./...

# v2 - check formatting, build, test
WORKDIR $V2
# v1 - check formatting, build, test
WORKDIR $V1
RUN go mod download
RUN test -z $(go mod tidy -v)
RUN go mod verify
RUN go build ./...
RUN go test ./...

# artifacts
ARG BUILD_ARTIFACTS_AUDIT=/go/src/github.com/Workiva/go-rest/go.sum:/go/src/github.com/Workiva/go-rest/v2/go.sum
ARG BUILD_ARTIFACTS_AUDIT=/go/src/github.com/Workiva/go-rest/go.sum:/go/src/github.com/Workiva/go-rest/v1/go.sum

# no-op container
FROM scratch
2 changes: 1 addition & 1 deletion v2/go.mod → v1/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/Workiva/go-rest/v2
module github.com/Workiva/go-rest/v1

go 1.15

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion v2/rest/middleware/cors.go → v1/rest/middleware/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/url"
"strings"

"github.com/Workiva/go-rest/v2/rest"
"github.com/Workiva/go-rest/v1/rest"
)

// NewCORSMiddleware returns a Middleware which enables cross-origin requests.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"
"strings"

"github.com/Workiva/go-rest/v2/rest"
"github.com/Workiva/go-rest/v1/rest"
)

// NewPathTrimMiddleware returns a Middleware which inspects request paths
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 23cc326

Please sign in to comment.