Skip to content

updates

updates #254

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Run Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
env:
DATABASE_URL: "postgres://postgres:postgres@localhost"
API_KEY: ${{ secrets.API_KEY }}
REDIS_URL: ${{ secrets.REDIS_URL }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
AIRTRIBUNE_API_KEY: ${{ secrets.AIRTRIBUNE_API_KEY }}
services:
postgres:
# Docker Hub image
image: postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Start Redis
uses: supercharge/[email protected]
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies and run tests
run: |
bun install
bun db:push
bun test:ci