Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mako321 committed Jan 17, 2025
1 parent fe635ac commit 103e101
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/swagger.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
name: Generate Swagger Documentation

on:
push:
branches:
- main
#on:
# push:
# branches:
# - main

on: [pull_request]

jobs:
swagger-gh-pages:
runs-on: ubuntu-latest
container:
image: escolalms/php:8.2

services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: database
MYSQL_PASSWORD: password
MYSQL_USER: username
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- name: Instantiate package
uses: actions/checkout@v2
Expand All @@ -35,6 +49,8 @@ jobs:

- name: Generate Swagger UI
uses: Legion2/swagger-ui-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
output: swagger-ui
spec-file: openapi.json
Expand Down

0 comments on commit 103e101

Please sign in to comment.