Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Scullin committed Mar 14, 2024
1 parent 47007fc commit af0ee5a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/db-postgres.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Postgres DB

on: [push]

jobs:
# Label of the container job
test-postgres:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci --loglevel error
npm run build
gunzip -c test/data/postgres/malloytest-postgres.sql.gz | psql
npm run test-silent
env:
MALLOY_DATABASES: postgres
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
4 changes: 2 additions & 2 deletions .github/workflows/db-snowflake.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Snowflake DB (Non-blocking)
name: Snowflake DB

on: [push]

jobs:
build:
test-snowflake:
runs-on: ubuntu-latest

strategy:
Expand Down

0 comments on commit af0ee5a

Please sign in to comment.