feat: Enhance CI workflows with health checks and update PostgreSQL image version
This commit is contained in:
@@ -24,7 +24,7 @@ jobs:
|
||||
target: [unit, e2e, lint]
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
image: postgres:16
|
||||
env:
|
||||
POSTGRES_DB: calminer_ci
|
||||
POSTGRES_USER: calminer
|
||||
@@ -36,6 +36,7 @@ jobs:
|
||||
--health-retries 10
|
||||
steps:
|
||||
- name: Install Node.js runtime
|
||||
if: ${{ matrix.target == 'e2e' }}
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
@@ -63,8 +64,9 @@ jobs:
|
||||
- name: Prepare Python environment
|
||||
uses: ./.gitea/actions/setup-python-env
|
||||
with:
|
||||
install-playwright: ${{ matrix.target != 'e2e' }}
|
||||
install-playwright: ${{ matrix.target == 'e2e' }}
|
||||
use-system-python: 'true'
|
||||
run-db-setup: ${{ matrix.target != 'lint' }}
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user