Skip to content

Commit

Permalink
feat: Test updater library
Browse files Browse the repository at this point in the history
  • Loading branch information
mkilchhofer committed Dec 16, 2023
1 parent 0c551e1 commit 53cf353
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/updater.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: updater
on:
pull_request:
paths:
- 'updater/**'

jobs:
build:
name: Test updater library
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Set up Go 1.19
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: 1.19.x
id: go

- name: Start postgres dependency
run: |
docker-compose -f backend/docker-compose.test.yaml up -d postgres
- name: Test library
run: |
cd updater
go test -v ./...
2 changes: 1 addition & 1 deletion updater/updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

const (
defaultTestDbURL string = "postgres://postgres:nebraska@127.0.0.1:5432/nebraska_tests?sslmode=disable&connect_timeout=10"
defaultTestDbURL string = "postgres://postgres:nebraska@127.0.0.1:8001/nebraska_tests?sslmode=disable&connect_timeout=10"
)

type testOmahaHandler struct {
Expand Down

0 comments on commit 53cf353

Please sign in to comment.