fix: Refactor test-and-push.yml for improved clarity and structure

This commit is contained in:
2026-03-07 09:29:01 +07:00
parent 2677e40f42
commit 5e48bd5030

View File

@@ -2,14 +2,17 @@ name: Database Test
on:
push:
tags:
- "v*"
tags: ["v*"]
pull_request:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
db: [postgres]
@@ -27,6 +30,9 @@ jobs:
- name: Test ${{ matrix.db }}
run: just test ${{ matrix.db }}
- name: Cleanup ${{ matrix.db }}
run: just db-clean ${{ matrix.db }}
publish:
needs: test
runs-on: ubuntu-latest
@@ -52,3 +58,6 @@ jobs:
- name: Publish ${{ matrix.db }}
run: just publish ${{ matrix.db }}
- name: Cleanup ${{ matrix.db }}
run: just clean ${{ matrix.db }}