|
33 | 33 | test: |
34 | 34 | name: " |
35 | 35 | .NET: ${{ matrix.dotnet-version }} |
| 36 | + Npgsql EF: ${{ matrix.npgsql-version }} |
36 | 37 | CrateDB: ${{ matrix.cratedb-version }} |
37 | 38 | on ${{ matrix.os }}" |
38 | 39 | runs-on: ${{ matrix.os }} |
|
44 | 45 | '8.x', |
45 | 46 | '9.x', |
46 | 47 | ] |
| 48 | + npgsql-version: [ |
| 49 | + '8.*', |
| 50 | + '9.*', |
| 51 | + # error: NU1202: Package Npgsql.EntityFrameworkCore.PostgreSQL 10.0.0-rc.2 |
| 52 | + # is not compatible with net9.0 (.NETCoreApp,Version=v9.0). |
| 53 | + # Package Npgsql.EntityFrameworkCore.PostgreSQL 10.0.0-rc.2 supports: net10.0 |
| 54 | + # 'prerelease', |
| 55 | + ] |
47 | 56 | cratedb-version: [ 'nightly' ] |
48 | 57 |
|
49 | 58 | # https://docs.github.com/en/free-pro-team@latest/actions/guides/about-service-containers |
|
61 | 70 | - name: Acquire sources |
62 | 71 | uses: actions/checkout@v5 |
63 | 72 |
|
64 | | - - name: Set up uv |
65 | | - uses: astral-sh/setup-uv@v7 |
66 | | - |
67 | 73 | - name: Set up .NET ${{ matrix.dotnet-version }} |
68 | 74 | id: dotnet |
69 | 75 | uses: actions/setup-dotnet@v5 |
|
79 | 85 | run: | |
80 | 86 | echo '{"sdk":{"version": "${{ steps.dotnet.outputs.dotnet-version }}"}}' > ./global.json |
81 | 87 |
|
82 | | - - name: Validate by-language/csharp-efcore |
| 88 | + # Propagate the Npgsql version from the test matrix slot value, |
| 89 | + # display the current list of packages with versions, |
| 90 | + # and invoke the test suite. |
| 91 | + - name: "Validate by-language/csharp-efcore, Npgsql ${{ matrix.npgsql-version }}" |
83 | 92 | run: | |
84 | | - uv run --with=pueblo ngr test by-language/csharp-efcore --dotnet-version=${{ matrix.dotnet-version }} |
| 93 | + set -e |
| 94 | + cd by-language/csharp-efcore |
| 95 | + if [[ "${{ matrix.npgsql-version }}" = "prerelease" ]]; then |
| 96 | + dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --prerelease |
| 97 | + elif [[ "${{ matrix.npgsql-version }}" = "latest" ]]; then |
| 98 | + dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version=* |
| 99 | + else |
| 100 | + dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version=${{ matrix.npgsql-version }} |
| 101 | + fi |
| 102 | + dotnet list package |
| 103 | + dotnet run test |
0 commit comments