Skip to content

Commit

Permalink
chore: move swagger-gen.sh location
Browse files Browse the repository at this point in the history
  • Loading branch information
litsynp committed Apr 15, 2024
1 parent 3674e89 commit 8cbe930
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
go-version: '1.21.6'

- name: Generate Swagger
run: go install github.com/swaggo/swag/cmd/swag@latest && source ./swagger-gen.sh
run: go install github.com/swaggo/swag/cmd/swag@latest && source ./scripts/swagger-gen.sh

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./... -p 1
run: go test -v ./... -p 1
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN go mod download
COPY . .
# Swagger
RUN go install github.com/swaggo/swag/cmd/swag@latest
RUN ./swagger-gen.sh
RUN ./scripts/swagger-gen.sh
# Server
RUN CGO_ENABLED=0 GOOS=linux go build -o ./server ./cmd/server/*.go
# migration script
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ lint:

## Build ##
docs:
. ./swagger-gen.sh
. ./scripts/swagger-gen.sh
docs\:open:
open ${SERVER_URL}${SWAGGER_ROUTE}
docs\:clean:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $ cp .env.template .env
필요에 따라 swagger-gen.sh 파일에 exec 권한을 부여합니다.

```bash
$ chmod +x ./swagger-gen.sh
$ chmod +x ./scripts/swagger-gen.sh
```

추가로, 파이어베이스 프로젝트의 서비스 계정 키를 다운로드하여 `firebase-credentials.json` 파일로 루트 디렉토리에 저장합니다.
Expand Down Expand Up @@ -101,7 +101,7 @@ $ ./migrate
API 문서는 [swaggo](https://github.com/swaggo/swag)를 사용하여 자동으로 생성됩니다.

```bash
$ source ./swagger-gen.sh
$ source ./scripts/swagger-gen.sh
```

`swagger/index.html` 또는 `/swagger/doc.json`을 열어 확인할 수 있습니다.
File renamed without changes.

0 comments on commit 8cbe930

Please sign in to comment.