Skip to content

Chore(deps): Bump dbmate from 2.34.1 to 2.35.0 #243

Chore(deps): Bump dbmate from 2.34.1 to 2.35.0

Chore(deps): Bump dbmate from 2.34.1 to 2.35.0 #243

Workflow file for this run

name: Test
on:
pull_request:
paths:
- '**/*.js'
- 'package*.json'
push:
branches: [main]
jobs:
jest:
name: Run tests
runs-on: ubuntu-latest
services:
postgresql:
image: postgres
env:
POSTGRES_USER: workflow_user
POSTGRES_PASSWORD: workflow_password
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v6
- name: Create database
run: psql -h localhost -U workflow_user -c 'CREATE DATABASE "odinbot_test";'
env:
PGPASSWORD: 'workflow_password'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test
env:
# dbmate defaults to requiring SSL and will not automatically try without
# only prod DB will be set up for SSL, so we must disable it here else dbmate will not connect
TEST_DATABASE_URL: postgresql://workflow_user:workflow_password@localhost:5432/odinbot_test?sslmode=disable