Skip to content

Commit

Permalink
ci: run tests
Browse files Browse the repository at this point in the history
Signed-off-by: Azanul <azanulhaque@gmail.com>
  • Loading branch information
Azanul committed Feb 20, 2024
1 parent 2af2a4c commit bc5ab3e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ jobs:

build:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v3

Expand All @@ -18,6 +30,15 @@ jobs:
with:
go-version: '1.21.3'

- name: Run go tests User service
run: go test ./user/... -v -cover

- name: Run go tests Notification service
run: go test ./notification/... -v -cover

- name: Run go tests API Gateway
run: go test ./api-gateway/... -v -cover

- name: Build and test User service
uses: goreleaser/goreleaser-action@v4
with:
Expand Down

0 comments on commit bc5ab3e

Please sign in to comment.