This commit is contained in:
parent
1346abf733
commit
dbd9dc28af
1 changed files with 56 additions and 37 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue