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:
|
||||
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 }}
|
||||
|
||||
Reference in New Issue
Block a user