diff --git a/.github/workflows/playground.yml b/.github/workflows/playground.yml new file mode 100644 index 0000000..aedeedb --- /dev/null +++ b/.github/workflows/playground.yml @@ -0,0 +1,66 @@ +name: Playground + +on: + push: + branches: [ master ] + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + + - name: Setup Bun + uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1 + with: + bun-version: latest + + - name: Install dependencies + run: bun install + + - name: Generate Swagger JSON and HTML + run: | + mkdir public + bun run start:dev & + sleep 3 + curl -s http://localhost:3000/docs/json > public/swagger.json + cat << 'EOF' > public/index.html + + +
+ + +