Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ jobs:
go-version: 1.25.x
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Create Table
run: |
psql postgres://postgres:postgres@localhost:5432/postgres -a -c '\i links.sql'
- name: Test
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
run: go test -v ./...
- name: Integration Test
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
Expand Down
2 changes: 2 additions & 0 deletions docker_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ until docker-compose -f dev/docker-compose.yml exec db pg_isready; do
sleep 1
done

go test ./...

./test.sh
12 changes: 3 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,16 @@ go 1.25.0

require (
github.com/go-chi/chi/v5 v5.3.1
github.com/jackc/pgx/v4 v4.18.3
github.com/jackc/pgx/v5 v5.10.0
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
google.golang.org/protobuf v1.36.10
jdtw.dev/token v0.1.6
)

require (
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.14.3 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.3 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jackc/pgtype v1.14.4 // indirect
github.com/jackc/puddle v1.3.0 // indirect
github.com/stretchr/testify v1.10.0 // indirect
golang.org/x/crypto v0.54.0 // indirect
github.com/jackc/puddle/v2 v2.2.2 // indirect
golang.org/x/sync v0.22.0 // indirect
golang.org/x/text v0.40.0 // indirect
)
Loading
Loading