Skip to content
Open
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
29 changes: 24 additions & 5 deletions .github/workflows/lang-csharp-efcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
test:
name: "
.NET: ${{ matrix.dotnet-version }}
Npgsql EF: ${{ matrix.npgsql-version }}
CrateDB: ${{ matrix.cratedb-version }}
on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
Expand All @@ -44,6 +45,14 @@ jobs:
'8.x',
'9.x',
]
npgsql-version: [
'8.*',
'9.*',
# error: NU1202: Package Npgsql.EntityFrameworkCore.PostgreSQL 10.0.0-rc.2
# is not compatible with net9.0 (.NETCoreApp,Version=v9.0).
# Package Npgsql.EntityFrameworkCore.PostgreSQL 10.0.0-rc.2 supports: net10.0
# 'prerelease',
]
cratedb-version: [ 'nightly' ]

# https://docs.github.com/en/free-pro-team@latest/actions/guides/about-service-containers
Expand All @@ -61,9 +70,6 @@ jobs:
- name: Acquire sources
uses: actions/checkout@v5

- name: Set up uv
uses: astral-sh/setup-uv@v7

- name: Set up .NET ${{ matrix.dotnet-version }}
id: dotnet
uses: actions/setup-dotnet@v5
Expand All @@ -79,6 +85,19 @@ jobs:
run: |
echo '{"sdk":{"version": "${{ steps.dotnet.outputs.dotnet-version }}"}}' > ./global.json

- name: Validate by-language/csharp-efcore
# Propagate the Npgsql version from the test matrix slot value,
# display the current list of packages with versions,
# and invoke the test suite.
- name: "Validate by-language/csharp-efcore, Npgsql ${{ matrix.npgsql-version }}"
run: |
uv run --with=pueblo ngr test by-language/csharp-efcore --dotnet-version=${{ matrix.dotnet-version }}
set -e
cd by-language/csharp-efcore
if [[ "${{ matrix.npgsql-version }}" = "prerelease" ]]; then
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --prerelease
elif [[ "${{ matrix.npgsql-version }}" = "latest" ]]; then
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version=*
else
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version=${{ matrix.npgsql-version }}
fi
dotnet list package
dotnet run test
26 changes: 20 additions & 6 deletions .github/workflows/lang-csharp-npgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ jobs:
'8.x',
'9.x',
]
npgsql-version: [ '8.0.7', '9.0.3' ]
npgsql-version: [
'8.*',
'9.*',
'prerelease',
]
cratedb-version: [ 'nightly' ]

# https://docs.github.com/en/free-pro-team@latest/actions/guides/about-service-containers
Expand All @@ -63,9 +67,6 @@ jobs:
- name: Acquire sources
uses: actions/checkout@v5

- name: Set up uv
uses: astral-sh/setup-uv@v7

- name: Set up .NET ${{ matrix.dotnet-version }}
id: dotnet
uses: actions/setup-dotnet@v5
Expand All @@ -81,6 +82,19 @@ jobs:
run: |
echo '{"sdk":{"version": "${{ steps.dotnet.outputs.dotnet-version }}"}}' > ./global.json

- name: Validate by-language/csharp-npgsql, Npgsql ${{ matrix.npgsql-version }}
# Propagate the Npgsql version from the test matrix slot value,
# display the current list of packages with versions,
# and invoke the test suite.
- name: "Validate by-language/csharp-npgsql, Npgsql ${{ matrix.npgsql-version }}"
run: |
uv run --with=pueblo ngr test by-language/csharp-npgsql --dotnet-version=${{ matrix.dotnet-version }} --npgsql-version=${{ matrix.npgsql-version }}
set -e
cd by-language/csharp-npgsql
if [[ "${{ matrix.npgsql-version }}" = "prerelease" ]]; then
dotnet add package Npgsql --prerelease
elif [[ "${{ matrix.npgsql-version }}" = "latest" ]]; then
dotnet add package Npgsql --version=*
else
dotnet add package Npgsql --version=${{ matrix.npgsql-version }}
fi
dotnet list package
dotnet run test
Loading