CI: il PostgreSQL dei test non si riavvia più a metà della suite #99

Merged
Alby96 merged 6 commits from ci-postgres into main 2026-11-15 16:27:30 +01:00
Showing only changes of commit 73f2345047 - Show all commits
+2 -8
View File
@@ -9,14 +9,13 @@ on:
jobs:
test:
if: github.event_name == 'push' # TEMPORARY (issue #98): stress run, three suites on one server
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/dotnet/sdk:10.0
strategy:
fail-fast: false
matrix:
db: [postgres] # TEMPORARY (issue #98)
db: [sqlite, postgres]
services:
postgres:
image: postgres:18
@@ -48,18 +47,13 @@ jobs:
git -c http.extraHeader="Authorization: token ${{ github.token }}" fetch -q --depth 1 origin "${{ github.sha }}"
git checkout -q FETCH_HEAD
- name: Check
# TEMPORARY (issue #98): the PostgreSQL suite three times on the same server.
run: |
status=0
for i in 1 2 3; do echo "== round $i"; sh ./tasks.sh test -c Release || status=1; done
exit $status
run: sh ./tasks.sh check
# The log of the PostgreSQL service, read through the Docker socket the runner mounts in the job (issue #98).
- name: PostgreSQL log
if: always() && matrix.db == 'postgres'
run: sh ./tasks.sh ci-service-log postgres
image:
if: false # TEMPORARY (issue #98)
needs: test
runs-on: ubuntu-latest
# Registry settings for phase 9 (issue #70): declared here, not used before then.