Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@Aloento
39 changes: 39 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ jobs:
with:
version: ${{ env.GO_LINT }}

ent-codegen:
name: ent-codegen
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: ${{ env.GO_VERSION }}
- run: go generate ./ent
- run: git diff --exit-code -- ent/

test:
name: go-test
runs-on: ubuntu-latest
Expand All @@ -39,3 +50,31 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
- run: make test

test-acc:
name: go-test-acc
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15-alpine
env:
POSTGRES_USER: pg
POSTGRES_PASSWORD: pass
POSTGRES_DB: status_dashboard
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U pg"
--health-interval 10s
--health-timeout 5s
--health-retries 10
env:
SD_TEST_DSN: postgres://pg:pass@localhost:5432/status_dashboard?sslmode=disable
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: ${{ env.GO_VERSION }}
- name: Load the test fixture
run: psql "$SD_TEST_DSN" -v ON_ERROR_STOP=1 -q -f tests/testdata/dump_test.sql
- run: make test-acc
Loading
Loading