Files
Kyoo/.github/workflows/api-test.yml
renovate[bot] 0644a43cb1 chore(deps): update actions/checkout action to v6 (#1193)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 10:34:05 +01:00

42 lines
859 B
YAML

name: Tests
on:
push:
branches:
- master
- next
pull_request:
workflow_dispatch:
jobs:
test:
name: Test api
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
ports:
- "5432:5432"
env:
POSTGRES_USER: kyoo
POSTGRES_PASSWORD: password
POSTGRES_DB: kyoo_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
working-directory: ./api
run: bun install --frozen-lockfile
- name: Test
working-directory: ./api
run: bun test
env:
PGHOST: localhost
IMAGES_PATH: ./images