Skip to content

Implement persistent storage and the pressure algorithm using PostgreSQL database #92

Implement persistent storage and the pressure algorithm using PostgreSQL database

Implement persistent storage and the pressure algorithm using PostgreSQL database #92

Workflow file for this run

name: Tests
on:
pull_request:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-test:
name: Run Unit and Lint Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 1.25
- name: Ensure No Formatting Changes
run: |
go fmt ./...
git diff --exit-code
- name: Build and Test
env:
POSTGRESQL_CONNECT_STRING: postgres://postgres:postgres@localhost:5432/postgres
RABBITMQ_CONNECT_STRING: amqp://guest:guest@localhost:5672/
APP_PORT: 8080
APP_WEBHOOK_SECRET_VALUE: fake-secret
run: |
go test -v -cover -race ./...