Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Build & Test - NET8 - PG15 - Newtonsoft - EventSourcing

on:
push:
branches:
- master
- "7.0"
paths-ignore:
- 'documentation/**'
- 'docs/**'
- 'azure-pipelines.yml'
pull_request:
branches:
- master
- "7.0"
paths-ignore:
- 'documentation/**'
- 'docs/**'
- 'azure-pipelines.yml'

env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
pg_db: marten_testing
pg_user: postgres
CONFIGURATION: Release
FRAMEWORK: net8.0
DISABLE_TEST_PARALLELIZATION: true
DEFAULT_SERIALIZER: "Newtonsoft"
NUKE_TELEMETRY_OPTOUT: true

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20

services:
postgres:
image: postgres:15-alpine
ports:
- 5432:5432
env:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: ${{ env.pg_db }}
NAMEDATALEN: 150
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
--user postgres

steps:
- uses: actions/checkout@v6

- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x

- name: Install .NET Aspire workload
run: |
dotnet workload update
dotnet workload install aspire

- name: Optimize database for running tests faster
run: |
PG_CONTAINER_NAME=$(docker ps --filter expose=5432/tcp --format {{.Names}})
docker exec $PG_CONTAINER_NAME bash -c "echo -e '\nfsync = off' >> /var/lib/postgresql/data/postgresql.conf"
docker exec $PG_CONTAINER_NAME bash -c "echo -e '\nfull_page_writes = off' >> /var/lib/postgresql/data/postgresql.conf"
docker exec $PG_CONTAINER_NAME bash -c "echo -e '\nsynchronous_commit = off' >> /var/lib/postgresql/data/postgresql.conf"
docker container restart $PG_CONTAINER_NAME
shell: bash

- name: compile
run: ./build.sh compile
shell: bash

- name: test-event-sourcing
if: ${{ success() || failure() }}
run: ./build.sh test-event-sourcing
shell: bash

11 changes: 0 additions & 11 deletions .github/workflows/on-push-do-ci-build-pg15-jsonnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ on:
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
node_version: 24.x
pg_db: marten_testing
pg_user: postgres
CONFIGURATION: Release
Expand Down Expand Up @@ -67,11 +66,6 @@ jobs:
dotnet workload update
dotnet workload install aspire

- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.node_version }}

- name: Optimize database for running tests faster
run: |
PG_CONTAINER_NAME=$(docker ps --filter expose=5432/tcp --format {{.Names}})
Expand Down Expand Up @@ -100,11 +94,6 @@ jobs:
run: ./build.sh test-document-db
shell: bash

- name: test-event-sourcing
if: ${{ success() || failure() }}
run: ./build.sh test-event-sourcing
shell: bash

- name: test-cli
if: ${{ success() || failure() }}
run: ./build.sh test-cli
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Build & Test - NET10 - PGLatest - System.Text.Json - Event Sourcing

on:
push:
branches:
- master
- "7.0"
paths-ignore:
- 'documentation/**'
- 'docs/**'
- 'azure-pipelines.yml'
pull_request:
branches:
- master
- "7.0"
paths-ignore:
- 'documentation/**'
- 'docs/**'
- 'azure-pipelines.yml'

env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
pg_db: marten_testing
pg_user: postgres
CONFIGURATION: Release
FRAMEWORK: net10.0
DISABLE_TEST_PARALLELIZATION: true
DEFAULT_SERIALIZER: "SystemTextJson"
NUKE_TELEMETRY_OPTOUT: true

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20

services:
postgres:
image: postgres:latest
ports:
- 5432:5432
env:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: ${{ env.pg_db }}
NAMEDATALEN: 150
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
--user postgres

steps:
- uses: actions/checkout@v6

- name: Install .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x

- name: Install .NET Aspire workload
run: |
dotnet workload update
dotnet workload install aspire

# - name: Optimize database for running tests faster
# run: |
# PG_CONTAINER_NAME=$(docker ps --filter expose=5432/tcp --format {{.Names}})
# docker exec $PG_CONTAINER_NAME bash -c "echo -e '\nfsync = off' >> /var/lib/postgresql/data/postgresql.conf"
# docker exec $PG_CONTAINER_NAME bash -c "echo -e '\nfull_page_writes = off' >> /var/lib/postgresql/data/postgresql.conf"
# docker exec $PG_CONTAINER_NAME bash -c "echo -e '\nsynchronous_commit = off' >> /var/lib/postgresql/data/postgresql.conf"
# docker container restart $PG_CONTAINER_NAME
# shell: bash

- name: compile
run: ./build.sh compile
shell: bash

- name: test-event-sourcing
if: ${{ success() || failure() }}
run: ./build.sh test-event-sourcing
shell: bash

11 changes: 0 additions & 11 deletions .github/workflows/on-push-do-ci-build-pgLatest-systemtextjson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ on:
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
node_version: 24.x
pg_db: marten_testing
pg_user: postgres
CONFIGURATION: Release
Expand Down Expand Up @@ -67,11 +66,6 @@ jobs:
dotnet workload update
dotnet workload install aspire

- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.node_version }}

# - name: Optimize database for running tests faster
# run: |
# PG_CONTAINER_NAME=$(docker ps --filter expose=5432/tcp --format {{.Names}})
Expand Down Expand Up @@ -100,11 +94,6 @@ jobs:
run: ./build.sh test-document-db
shell: bash

- name: test-event-sourcing
if: ${{ success() || failure() }}
run: ./build.sh test-event-sourcing
shell: bash

- name: test-cli
if: ${{ success() || failure() }}
run: ./build.sh test-cli
Expand Down
Loading