-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from bancodobrasil/fix/swagger
Fix/swagger
- Loading branch information
Showing
8 changed files
with
24 additions
and
866 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
config.yaml | ||
.github/ | ||
.vscode/ | ||
dev.sh | ||
dev.sh | ||
/docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,18 +28,23 @@ jobs: | |
|
||
- name: "Fetch dependencies" | ||
run: go mod download | ||
|
||
# Only run gofmt, vet & lint against the latest Go version | ||
- name: "Run golint" | ||
if: ${{ matrix.go_version == env.LATEST_GO_VERSION && matrix.os == 'ubuntu-latest'}} | ||
run: | | ||
go install golang.org/x/lint/golint@latest | ||
golint -set_exit_status $1 ./... | ||
exit $1 | ||
|
||
- name: "Run gofmt" | ||
if: ${{ matrix.go_version == env.LATEST_GO_VERSION && matrix.os == 'ubuntu-latest'}} | ||
run: diff -u <(echo -n) <(gofmt -d -e .) | ||
- name: "Generate Swagger" | ||
run: | | ||
go install github.com/swaggo/swag/cmd/[email protected] | ||
swag i | ||
# # Only run gofmt, vet & lint against the latest Go version | ||
# - name: "Run golint" | ||
# if: ${{ matrix.go_version == env.LATEST_GO_VERSION && matrix.os == 'ubuntu-latest'}} | ||
# run: | | ||
# go install golang.org/x/lint/golint@latest | ||
# golint -set_exit_status $1 ./... | ||
# exit $1 | ||
|
||
# - name: "Run gofmt" | ||
# if: ${{ matrix.go_version == env.LATEST_GO_VERSION && matrix.os == 'ubuntu-latest'}} | ||
# run: diff -u <(echo -n) <(gofmt -d -e .) | ||
|
||
- name: "Run go vet" | ||
if: ${{ matrix.go_version == env.LATEST_GO_VERSION && matrix.os == 'ubuntu-latest'}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ vendor | |
_data/* | ||
!.gitkeep | ||
__debug_bin | ||
/docs | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,12 @@ COPY go.sum /app | |
|
||
RUN go mod download | ||
|
||
RUN go install github.com/swaggo/swag/cmd/[email protected] | ||
|
||
COPY . /app | ||
|
||
RUN swag i | ||
|
||
RUN go build -o jamie-service | ||
|
||
FROM alpine:3.17 | ||
|
Oops, something went wrong.