feat: run tests before deploy
Some checks failed
Deploy / build-and-deploy (push) Failing after 18s

This commit is contained in:
juancwu 2026-02-14 11:26:57 -05:00
commit dbd9dc28af
No known key found for this signature in database

View file

@ -6,9 +6,28 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-full-24.04
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: budgit_test
POSTGRES_PASSWORD: testpass
POSTGRES_DB: budgit_test
options: >-
--health-cmd "pg_isready -U budgit_test -d budgit_test"
--health-interval 5s
--health-timeout 3s
--health-retries 10
--health-start-period 10s
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run tests
env:
BUDGIT_TEST_POSTGRES_URL: 'postgres://budgit_test:testpass@postgres:5432/budgit_test?sslmode=disable'
run: |
go tool templ generate
task test:integration
- name: Build
run: task build
- name: Setup SSH