Skip to content

Commit

Permalink
add postgres to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiazza committed Apr 16, 2024
1 parent 0513ca0 commit eb21abf
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/python-ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,32 @@ name: cti-python-stix2 test harness
on: [push, pull_request]

jobs:
build:
# Label of the container job
container-job:
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
container: node:10.18-jessie

# Service containers to run with `container-job`
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for 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:
# Maps tcp port 5432 on service container to the host
- 5432:5432
build:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit eb21abf

Please sign in to comment.