Skip to content

Add rudimentary containerized integration tests #7

Add rudimentary containerized integration tests

Add rudimentary containerized integration tests #7

Workflow file for this run

name: Integration
on: [pull_request]
jobs:
integration-test:
runs-on: ubuntu-latest
# services:
# postgres:
# image: postgres:latest
# # `POSTGRES_HOST` is `postgres`
# env:
# POSTGRES_DB: nycmesh-dev
# POSTGRES_USER: nycmesh
# POSTGRES_PASSWORD: helloThisIsATest
# POSTGRES_PORT: 5432
# ports:
# # maps tcp port 5432 on service container to the host
# - 5432:5432
# # set health checks to wait until postgres has started
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
steps:
- uses: actions/checkout@v3
- uses: isbang/[email protected]
with:
compose-file: "./docker-compose.yml"
down-flags: "--volumes"
services: |
postgres
meshdb
env:
DB_NAME: nymesh-dev
DB_USER: nycmesh
DB_HOST: postgres
DB_PASSWORD: helloThisIsATest
- name: "Run Integration Test Script"
run: |
export -p > .env
./tests/run_integration.sh -d
env:
DB_NAME: nymesh-dev
DB_USER: nycmesh
DB_HOST: postgres
DB_PASSWORD: helloThisIsATest