mirror of
https://github.com/esauflores/databases.git
synced 2026-03-09 06:30:34 +00:00
fix: Refactor test-and-push.yml for improved clarity and structure
This commit is contained in:
13
.github/workflows/test-and-push.yml
vendored
13
.github/workflows/test-and-push.yml
vendored
@@ -2,14 +2,17 @@ name: Database Test
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags: ["v*"]
|
||||||
- "v*"
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
db: [postgres]
|
db: [postgres]
|
||||||
|
|
||||||
@@ -27,6 +30,9 @@ jobs:
|
|||||||
- name: Test ${{ matrix.db }}
|
- name: Test ${{ matrix.db }}
|
||||||
run: just test ${{ matrix.db }}
|
run: just test ${{ matrix.db }}
|
||||||
|
|
||||||
|
- name: Cleanup ${{ matrix.db }}
|
||||||
|
run: just db-clean ${{ matrix.db }}
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -52,3 +58,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Publish ${{ matrix.db }}
|
- name: Publish ${{ matrix.db }}
|
||||||
run: just publish ${{ matrix.db }}
|
run: just publish ${{ matrix.db }}
|
||||||
|
|
||||||
|
- name: Cleanup ${{ matrix.db }}
|
||||||
|
run: just clean ${{ matrix.db }}
|
||||||
|
|||||||
Reference in New Issue
Block a user