mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-06 04:20:40 +00:00
added tsconfig to ci
This commit is contained in:
7
.github/workflows/openapi-linting.yaml
vendored
7
.github/workflows/openapi-linting.yaml
vendored
@@ -17,13 +17,12 @@ jobs:
|
||||
- name: Install Dependencies
|
||||
run: bun install
|
||||
|
||||
- name: OpenAPI Lint
|
||||
run: bun run lint
|
||||
|
||||
- name: Install Speakeasy CLI
|
||||
run: bun run setup-speakeasy-cli
|
||||
|
||||
# TODO: Disable this step until the linting is fixed in speakeasy with regards to $ref parameters in the OpenAPI spec `GET` must define parameter `ratingKey` as expected by path `/library/metadata/{ratingKey}`
|
||||
# - name: OpenAPI Lint
|
||||
# run: bun run lint
|
||||
|
||||
- name: Bundle OpenAPI Spec
|
||||
run: bun run build
|
||||
|
||||
|
||||
13
.github/workflows/openapi-tests.yaml
vendored
13
.github/workflows/openapi-tests.yaml
vendored
@@ -6,7 +6,7 @@ name: Unit Tests
|
||||
- tests/**
|
||||
|
||||
jobs:
|
||||
test:
|
||||
setup:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout PR branch
|
||||
@@ -18,8 +18,19 @@ jobs:
|
||||
- name: Install Dependencies
|
||||
run: bun install
|
||||
|
||||
unit-test:
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Bundle OpenAPI Spec
|
||||
run: bun run build
|
||||
|
||||
- name: Run Unit Tests
|
||||
run: bun run test
|
||||
|
||||
type-check:
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Run Unit Tests
|
||||
run: bun run type-check
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
"build": "swagger-cli bundle --dereference ./src/pms-spec.yaml -t yaml -o ./output/plex-media-server-spec-dereferenced.yaml",
|
||||
"build-redocly": "redocly bundle ./src/pms-spec.yaml --ext yaml -o ./output/plex-media-server-spec-dereferenced.yaml",
|
||||
"test": "bun run build && vitest --run",
|
||||
"type-check": "tsc",
|
||||
"setup-speakeasy-cli": "curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh",
|
||||
"lint": "redocly lint",
|
||||
"lint-speakeasy": "speakeasy lint openapi -s ./src/pms-spec.yaml",
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"noEmit": true,
|
||||
"outDir": "./output",
|
||||
"types": [
|
||||
"@modyfi/vite-plugin-yaml/modules"
|
||||
],
|
||||
}
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": ["**/*.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user