Skip to content

Commit

Permalink
add Postgres to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
animir committed Feb 13, 2024
1 parent 4da0ef0 commit 2ac8646
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ jobs:
node-version: [14.x, 16.x, 18.x, 20.x]
redis-version: [6, 7]

services:
postgres:
image: postgres
ports:
- 5432:5432

steps:
- name: Checkout repository
uses: actions/checkout@v4.0.0
Expand All @@ -60,6 +66,11 @@ jobs:

- name: Start DynamoDB local
uses: rrainn/dynamodb-action@v3.0.0


- name: Start PostgreSQL
uses: supercharge/postgres-github-action@1.0.0
with:
postgres-version: 'latest'

- run: npm install
- run: npm run test

0 comments on commit 2ac8646

Please sign in to comment.