Skip to content

Commit

Permalink
Add PostgreSQL setup
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadAhmedGit committed Dec 23, 2023
1 parent b3021d4 commit 62e3db2
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,29 @@ on:
branches: [ "master" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.3'

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.3'
- name: Build
run: go build ./cmd/formify/main.go

- name: Build
run: go build ./cmd/formify/main.go
- name: Start PostgreSQL
run: |
docker run -d \
--name postgres \
-e POSTGRES_DB=formify_dev \
-e POSTGRES_USER=saad \
-e POSTGRES_PASSWORD=password \
-p 5432:5432 \
postgres
- name: Test
run: go test -v ./tests/...
- name: Test
run: go test -v ./tests/...

0 comments on commit 62e3db2

Please sign in to comment.