Complete Overhaul

This commit is contained in:
Luke Hagar
2025-10-12 02:02:41 +00:00
parent 6c561d8861
commit 27f81a04ba
423 changed files with 16791 additions and 196399 deletions

View File

@@ -2,4 +2,4 @@
@coderabbitai summary
Fixes # (issue)
Fixes # (issue)

View File

@@ -1,32 +0,0 @@
name: Build and Copy Dereferenced Plex Media Server API Spec
on:
push:
branches:
- main
paths:
- src/**
workflow_dispatch:
jobs:
dereference_api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Project Setup
uses: ./.github/workflows/steps/project-setup
- name: Dereference Plex Media Server Specification
run: bun run build
- name: Commit Dereferenced Specification File
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "build: dereferenced Plex Media Server API Spec updated"
skip_checkout: true
skip_fetch: true
add_options: "-f"
file_pattern: "./output/*.yaml"
skip_dirty_check: true

View File

@@ -1,55 +0,0 @@
name: Checks
"on":
pull_request:
paths:
- src/**
- tests/**
jobs:
unit-test:
name: Run Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Project Setup
uses: ./.github/workflows/steps/project-setup
- name: Bundle OpenAPI Spec
run: bun run build
- name: Run Unit Tests
run: bun run test
type-check:
name: Run Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Project Setup
uses: ./.github/workflows/steps/project-setup
- name: Run Unit Tests
run: bun run type-check
lint:
name: Run OpenApi Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Project Setup
uses: ./.github/workflows/steps/project-setup
- name: OpenAPI Lint
run: bun run lint
- name: Install Speakeasy CLI
run: bun run setup-speakeasy-cli
- name: Bundle OpenAPI Spec
run: bun run build
- name: OpenAPI Lint On Bundled Spec
run: bun run lint-bundled

View File

@@ -18,7 +18,7 @@ permissions:
- main
paths:
- .github/workflows/sdk_generation.yaml
- output/plex-media-server-spec-dereferenced.yaml
- ./plex-api-spec.yaml
jobs:
generate:
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15

View File

@@ -1,12 +0,0 @@
name: "Project Setup"
description: "Setup Bun and install dependencies"
runs:
using: "composite"
steps:
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "latest"
- name: Clean install node_modules
shell: bash
run: bun install