mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-06 04:20:40 +00:00
Complete Overhaul
This commit is contained in:
2
.github/PULL_REQUEST_TEMPLATE/default.md
vendored
2
.github/PULL_REQUEST_TEMPLATE/default.md
vendored
@@ -2,4 +2,4 @@
|
||||
|
||||
@coderabbitai summary
|
||||
|
||||
Fixes # (issue)
|
||||
Fixes # (issue)
|
||||
|
||||
32
.github/workflows/build-and-copy-pms-spec.yml
vendored
32
.github/workflows/build-and-copy-pms-spec.yml
vendored
@@ -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
|
||||
55
.github/workflows/pull-request-checks.yaml
vendored
55
.github/workflows/pull-request-checks.yaml
vendored
@@ -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
|
||||
2
.github/workflows/sdk_generation.yaml
vendored
2
.github/workflows/sdk_generation.yaml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user