mirror of
https://github.com/LukeHagar/plex-api-spec.git
synced 2025-12-06 12:37:45 +00:00
run unit tests in ci
This commit is contained in:
25
.github/workflows/openapi-tests.yaml
vendored
Normal file
25
.github/workflows/openapi-tests.yaml
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: Unit Tests
|
||||||
|
"on":
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- src/**
|
||||||
|
- tests/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout PR branch
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: bun install
|
||||||
|
|
||||||
|
- name: Bundle OpenAPI Spec
|
||||||
|
run: bun run build
|
||||||
|
|
||||||
|
- name: Run Unit Tests
|
||||||
|
run: bun run test
|
||||||
Reference in New Issue
Block a user