CI: il PostgreSQL dei test non si riavvia più a metà della suite #99
@@ -9,14 +9,13 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
if: github.event_name == 'push' # TEMPORARY (issue #98): stress run, three suites on one server
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: mcr.microsoft.com/dotnet/sdk:10.0
|
image: mcr.microsoft.com/dotnet/sdk:10.0
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
db: [postgres] # TEMPORARY (issue #98)
|
db: [sqlite, postgres]
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:18
|
image: postgres:18
|
||||||
@@ -48,18 +47,13 @@ jobs:
|
|||||||
git -c http.extraHeader="Authorization: token ${{ github.token }}" fetch -q --depth 1 origin "${{ github.sha }}"
|
git -c http.extraHeader="Authorization: token ${{ github.token }}" fetch -q --depth 1 origin "${{ github.sha }}"
|
||||||
git checkout -q FETCH_HEAD
|
git checkout -q FETCH_HEAD
|
||||||
- name: Check
|
- name: Check
|
||||||
# TEMPORARY (issue #98): the PostgreSQL suite three times on the same server.
|
run: sh ./tasks.sh check
|
||||||
run: |
|
|
||||||
status=0
|
|
||||||
for i in 1 2 3; do echo "== round $i"; sh ./tasks.sh test -c Release || status=1; done
|
|
||||||
exit $status
|
|
||||||
# The log of the PostgreSQL service, read through the Docker socket the runner mounts in the job (issue #98).
|
# The log of the PostgreSQL service, read through the Docker socket the runner mounts in the job (issue #98).
|
||||||
- name: PostgreSQL log
|
- name: PostgreSQL log
|
||||||
if: always() && matrix.db == 'postgres'
|
if: always() && matrix.db == 'postgres'
|
||||||
run: sh ./tasks.sh ci-service-log postgres
|
run: sh ./tasks.sh ci-service-log postgres
|
||||||
|
|
||||||
image:
|
image:
|
||||||
if: false # TEMPORARY (issue #98)
|
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Registry settings for phase 9 (issue #70): declared here, not used before then.
|
# Registry settings for phase 9 (issue #70): declared here, not used before then.
|
||||||
|
|||||||
Reference in new issue
Block a user