|
16 | 16 | required: true |
17 | 17 | type: string |
18 | 18 | db-engine: |
19 | | - description: 'Database service required for this build: none, sqlserver, postgresql, mysql, mariadb, oracle, db2, clickhouse, cockroachdb, firebird, vertica, enterprisedb, saphana' |
| 19 | + description: 'Database service required for this build: none, sqlserver, postgresql, auroradbnpgsql, mysql, mariadb, oracle, db2, clickhouse, cockroachdb, firebird, vertica, enterprisedb, saphana' |
20 | 20 | required: true |
21 | 21 | type: string |
22 | 22 | secrets: |
|
36 | 36 | REPODB_PGSQL_CONSTR_POSTGRES: "Server=127.0.0.1;Port=5432;Database=postgres;User Id=postgres;Password=RepoDB2026;" |
37 | 37 | REPODB_PGSQL_CONSTR: "Server=127.0.0.1;Port=5432;Database=RepoDb;User Id=postgres;Password=RepoDB2026;" |
38 | 38 | REPODB_PGSQL_CONSTR_BULK: "Server=127.0.0.1;Port=5432;Database=RepoDbBulk;User Id=postgres;Password=RepoDB2026;" |
| 39 | + # Amazon Aurora PostgreSQL (a plain PostgreSQL with PostGIS stands in for an Aurora PostgreSQL cluster) |
| 40 | + REPODB_AURORADB_CONSTR_SYSTEM: "Server=127.0.0.1;Port=5435;Database=postgres;User Id=postgres;Password=RepoDB2026;" |
| 41 | + REPODB_AURORADB_CONSTR: "Server=127.0.0.1;Port=5435;Database=RepoDb;User Id=postgres;Password=RepoDB2026;" |
| 42 | + REPODB_AURORADB_CONSTR_BULK: "Server=127.0.0.1;Port=5435;Database=RepoDbBulk;User Id=postgres;Password=RepoDB2026;" |
39 | 43 | # MySQL |
40 | 44 | REPODB_MYSQL_CONSTR_SYSTEM: "Server=127.0.0.1;Port=3306;Database=sys;User ID=root;Password=RepoDB2026;" |
41 | 45 | REPODB_MYSQL_CONSTR: "Server=127.0.0.1;Port=3306;Database=RepoDb;User ID=root;Password=RepoDB2026;" |
@@ -200,6 +204,59 @@ jobs: |
200 | 204 | name: ${{ inputs.artifact-name }} |
201 | 205 | path: release/*nupkg |
202 | 206 |
|
| 207 | + # Amazon Aurora PostgreSQL only (e.g. RepoDb.AuroraDb.PostgreSql, RepoDb.AuroraDb.PostgreSql.BulkOperations). A plain PostgreSQL with PostGIS stands in for an Aurora PostgreSQL cluster. |
| 208 | + build-auroradbnpgsql: |
| 209 | + if: inputs.db-engine == 'auroradbnpgsql' |
| 210 | + runs-on: ubuntu-latest |
| 211 | + |
| 212 | + services: |
| 213 | + auroradbnpgsql: |
| 214 | + image: postgis/postgis:latest |
| 215 | + ports: |
| 216 | + - 127.0.0.1:5435:5432 |
| 217 | + env: |
| 218 | + POSTGRES_USER: postgres |
| 219 | + POSTGRES_PASSWORD: RepoDB2026 |
| 220 | + options: >- |
| 221 | + --health-cmd "pg_isready -U postgres" |
| 222 | + --health-interval 5s |
| 223 | + --health-timeout 5s |
| 224 | + --health-retries 30 |
| 225 | +
|
| 226 | + steps: |
| 227 | + - name: Check out repository code |
| 228 | + uses: actions/checkout@v5 |
| 229 | + |
| 230 | + - name: Setup .NET Versions |
| 231 | + uses: actions/setup-dotnet@v5 |
| 232 | + with: |
| 233 | + dotnet-version: | |
| 234 | + 10.0.x |
| 235 | +
|
| 236 | + - name: Dotnet Build |
| 237 | + run: dotnet build -c release "${{ inputs.solution-dir }}/${{ inputs.solution-file }}" |
| 238 | + |
| 239 | + - name: Test for .NET 8.0 |
| 240 | + working-directory: ${{ inputs.solution-dir }} |
| 241 | + run: dotnet test -c release -f net8.0 --no-build ${{ inputs.solution-file }} |
| 242 | + |
| 243 | + - name: Test for .NET 9.0 |
| 244 | + working-directory: ${{ inputs.solution-dir }} |
| 245 | + run: dotnet test -c release -f net9.0 --no-build ${{ inputs.solution-file }} |
| 246 | + |
| 247 | + - name: Test for .NET 10.0 |
| 248 | + working-directory: ${{ inputs.solution-dir }} |
| 249 | + run: dotnet test -c release -f net10.0 --no-build -p:TestingPlatformDotnetTestSupport=true -p:TestingPlatformShowTestsFailure=true -p:TestingPlatformCaptureOutput=false ${{ inputs.solution-file }} |
| 250 | + |
| 251 | + - name: Run Dotnet Pack |
| 252 | + run: dotnet pack -c release -p Version="1.14.0-dev-${{ github.run_number }}" -o release "${{ inputs.solution-dir }}/${{ inputs.solution-file }}" |
| 253 | + |
| 254 | + - name: Package Nuget |
| 255 | + uses: actions/upload-artifact@v5 |
| 256 | + with: |
| 257 | + name: ${{ inputs.artifact-name }} |
| 258 | + path: release/*nupkg |
| 259 | + |
203 | 260 | # MySQL only (e.g. RepoDb.MySql, RepoDb.MySqlConnector) |
204 | 261 | build-mysql: |
205 | 262 | if: inputs.db-engine == 'mysql' |
|
0 commit comments