Skip to content

Commit fb6abab

Browse files
committed
test test setup again
1 parent 2bca2ba commit fb6abab

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,8 @@ jobs:
1717
run: docker compose version
1818

1919
- name: Build and run services
20-
run: docker compose up -d --build
20+
run: docker compose up -d db
2121

22-
- name: Wait for Postgres to be ready
23-
run: |
24-
until docker compose exec -T db pg_isready -U testuser; do
25-
echo "Waiting for Postgres..."
26-
sleep 2
27-
done
2822

2923

3024
- name: Set up Go
@@ -35,6 +29,14 @@ jobs:
3529
- name: Install dependencies
3630
run: go mod tidy
3731

32+
33+
- name: Wait for Postgres to be ready
34+
run: |
35+
until docker compose exec -T db pg_isready -U testuser; do
36+
echo "Waiting for Postgres..."
37+
sleep 2
38+
done
39+
3840
- name: Run tests
3941
run: go test -cover ./...
4042

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dev::
44

55
test::
66
sqlc generate
7-
go test -count=1 ./...
7+
go test -count=1 -cover ./...
88

99
staging::
1010
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/bridge-amd64

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ test diffs from v1/ endpoints
3232
make apidiff
3333
```
3434

35+
## adminer
36+
37+
http://localhost:21301/?pgsql=db&username=postgres
38+
3539
## Schema dump
3640

3741
```

0 commit comments

Comments
 (0)