File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # PostgreSQL matrix workflow — exercises the store test suite with both SQLite and PostgreSQL backends.
2+ # Uses dockertest (github.com/ory/dockertest) to spin up a Postgres 16 container inside the test
3+ # process — no GitHub Actions service container is needed.
4+ #
5+ # NOTE: This workflow is OPTIONAL until 2026-06-01. After that date, flip to required
6+ # via branch protection (Settings → Branches → add status check "Store Tests (postgres)").
7+
8+ name : Store Matrix (SQLite + PostgreSQL)
9+
10+ on :
11+ pull_request :
12+ push :
13+ branches :
14+ - master
15+ - main
16+
17+ permissions :
18+ contents : read
19+
20+ jobs :
21+ store-tests :
22+ name : Store Tests (${{ matrix.db_type }})
23+ runs-on : ubuntu-latest
24+
25+ strategy :
26+ fail-fast : false
27+ matrix :
28+ db_type : [sqlite, postgres]
29+
30+ env :
31+ ENGRAM_JUDGE_DISABLED : " 1"
32+
33+ steps :
34+ - name : Checkout
35+ uses : actions/checkout@v6
36+
37+ - name : Set up Go
38+ uses : actions/setup-go@v6
39+ with :
40+ go-version : " 1.25.10"
41+
42+ - name : Run store tests (SQLite)
43+ if : matrix.db_type == 'sqlite'
44+ run : go test -count=1 ./...
45+
46+ - name : Run store tests (PostgreSQL via dockertest)
47+ if : matrix.db_type == 'postgres'
48+ run : go test -count=1 ./internal/store/...
You can’t perform that action at this time.
0 commit comments