Skip to content

Commit

Permalink
Merge pull request #30 from traP-jp/add/openapi.yaml
Browse files Browse the repository at this point in the history
add:openapi.yaml
  • Loading branch information
mathsuky authored Oct 14, 2024
2 parents 0da2d12 + e929526 commit 43e1fe6
Show file tree
Hide file tree
Showing 3 changed files with 1,720 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/_frontend-backend_api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: test-front-back-api

on:
push:
branches: ["develop"]
pull_request:
branches: ["develop"]

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./api/backend
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Generate API test
run: docker run --rm
-v ${PWD}:/local
openapitools/openapi-generator-cli validate
-i /local/frontend-backend.yaml
3 changes: 3 additions & 0 deletions api/backend/frontend-backend.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM swaggerapi/swagger-ui:v5.3.1
COPY api/backend/frontend-backend.yaml /openapi.yaml
ENV SWAGGER_JSON=/openapi.yaml
Loading

0 comments on commit 43e1fe6

Please sign in to comment.