Pin dependencies #3489
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: .NET Core | |
| on: [push, pull_request] | |
| jobs: | |
| db: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| DB: [SQLite] | |
| # macos: System.Data.SQLite.Core 1.x lacks an arm64 interop lib and so requires an intel macos image. There are | |
| # no latest such images, excepted -large but they require a paying GitHub account. https://github.com/actions/runner-images | |
| # Switching to System.Data.SQLite 2 (without .Core suffix) might allow to run on arm64. See https://system.data.sqlite.org | |
| OS: [ubuntu-latest, windows-latest, macos-26-intel] | |
| include: | |
| - DB: SqlServer2008 | |
| CONNECTION_STRING: "Server=localhost;initial catalog=nhibernate;User Id=sa;Password=P@ssw0rd;packet size=4096;" | |
| OS: ubuntu-latest | |
| DB_INIT: | | |
| docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=P@ssw0rd" -e "MSSQL_PID=Express" -p 1433:1433 -d --name sqlexpress mcr.microsoft.com/mssql/server:2019-latest; | |
| - DB: SqlServer2008-MicrosoftDataSqlClientDriver | |
| CONNECTION_STRING: "Server=localhost;initial catalog=nhibernate;User Id=sa;Password=P@ssw0rd;packet size=4096;TrustServerCertificate=true;" | |
| OS: ubuntu-latest | |
| DB_INIT: | | |
| docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=P@ssw0rd" -e "MSSQL_PID=Express" -p 1433:1433 -d --name sqlexpress mcr.microsoft.com/mssql/server:2019-latest; | |
| - DB: PostgreSQL | |
| CONNECTION_STRING: "Host=localhost;Username=nhibernate;Password=nhibernate;Database=nhibernate;Enlist=true;" | |
| OS: ubuntu-latest | |
| DB_INIT: | | |
| docker run -d -e POSTGRES_USER=nhibernate -e POSTGRES_PASSWORD=nhibernate -e POSTGRES_DB=nhibernate -p 5432:5432 postgres:13 | |
| - DB: PostgreSQL | |
| CONNECTION_STRING: "Host=localhost;Username=postgres;Password=nhibernate;Database=nhibernate;Enlist=true;" | |
| OS: windows-latest | |
| DB_INIT: | | |
| choco install postgresql13 --no-progress --params '/Password:nhibernate' | |
| Add-Content -Path 'C:\Program Files\PostgreSQL\13\data\postgresql.conf' -Value "`r`nmax_prepared_transactions = 100" | |
| Start-Service 'postgresql-x64-13' | |
| - DB: Firebird | |
| CONNECTION_STRING: "DataSource=localhost;Database=nhibernate;User=SYSDBA;Password=nhibernate;charset=utf8;" | |
| OS: ubuntu-latest | |
| DB_INIT: | | |
| docker run --name firebird -e EnableWireCrypt=true -e FIREBIRD_USER=nhibernate -e FIREBIRD_PASSWORD=nhibernate -e ISC_PASSWORD=nhibernate -e FIREBIRD_DATABASE=nhibernate -p 3050:3050 -d jacobalberty/firebird:v3.0 | |
| - DB: Firebird4 | |
| CONNECTION_STRING: "DataSource=localhost;Database=nhibernate;User=SYSDBA;Password=nhibernate;charset=utf8;" | |
| OS: ubuntu-latest | |
| DB_INIT: | | |
| docker run --name firebird -e EnableWireCrypt=true -e FIREBIRD_USER=nhibernate -e FIREBIRD_PASSWORD=nhibernate -e ISC_PASSWORD=nhibernate -e FIREBIRD_DATABASE=nhibernate -p 3050:3050 -d jacobalberty/firebird:v4.0 | |
| - DB: MySQL | |
| CONNECTION_STRING: "Server=localhost;Uid=root;Password=nhibernate;Database=nhibernate;Old Guids=True;SslMode=none;" | |
| OS: ubuntu-latest | |
| DB_INIT: | | |
| sudo service mysql stop | |
| docker run --name mysql -e MYSQL_ROOT_PASSWORD=nhibernate -e MYSQL_USER=nhibernate -e MYSQL_PASSWORD=nhibernate -e MYSQL_DATABASE=nhibernate -p 3306:3306 --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 -d mysql:5.7 mysqld --lower_case_table_names=1 --character-set-server=utf8 --collation-server=utf8_general_ci | |
| - DB: Oracle | |
| CONNECTION_STRING: "User ID=nhibernate;Password=nhibernate;Metadata Pooling=false;Self Tuning=false;Data Source=(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XEPDB1)))" | |
| OS: ubuntu-latest | |
| DB_INIT: | | |
| docker run -d -p 1521:1521 -e APP_USER=nhibernate -e APP_USER_PASSWORD=nhibernate -e ORACLE_PASSWORD=nhibernate gvenzl/oracle-xe:21-slim | |
| runs-on: ${{matrix.OS}} | |
| continue-on-error: ${{matrix.ALLOW_FAILURE == true}} | |
| env: | |
| LANG: en-US.UTF-8 #default POSIX locale doesn't support ignore case comparisons | |
| name: ${{matrix.DB}} - ${{matrix.OS}} | |
| steps: | |
| - name: Set up ${{matrix.DB}} | |
| run: ${{matrix.DB_INIT}} | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| show-progress: false | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5 | |
| with: | |
| global-json-file: global.json | |
| - name: Build and Test | |
| run: | | |
| pwsh -noprofile -command "& ./build.ps1 -TaskList Set-Configuration,Test -properties @{'Database' = '${{matrix.DB}}';'ConnectionString'='${{matrix.CONNECTION_STRING}}'}" |