Skip to content

add error handling for RecordTransaction in TestQueueTransactionFlow #244

add error handling for RecordTransaction in TestQueueTransactionFlow

add error handling for RecordTransaction in TestQueueTransactionFlow #244

Workflow file for this run

name: Build and Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: blnk
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis:latest
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.7
- name: Tidy
run: go mod tidy
- name: Build
run: go build ./cmd/*.go
- name: Migrate Database
run: go run ./cmd/*.go migrate up
env:
BLNK_DATA_SOURCE_DNS: postgres://postgres@localhost:5432/blnk?sslmode=disable
BLNK_REDIS_DNS: localhost:6379
- name: Test
run: go test -v ./