Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ghickman committed Nov 21, 2023
1 parent 8c12c32 commit c7a4d89
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,6 @@ jobs:
test:
runs-on: ubuntu-latest

services:
timescaledb:
build:
dockerfile: timescaledb/Dockerfile
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: metrics
TIMESCALEDB_TELEMETRY: off
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: "opensafely-core/setup-action@v1"
Expand All @@ -51,8 +35,13 @@ jobs:

- name: Run tests
env:
GITHUB_TOKEN:
SLACK_SIGNING_SECRET:
SLACK_TECH_SUPPORT_CHANNEL_ID:
SLACK_TOKEN:
TIMESCALEDB_URL: postgresql://user:password@localhost/metrics
run: |
docker compose up timescaledb --detach
just test
lint-dockerfile:
Expand Down

0 comments on commit c7a4d89

Please sign in to comment.