3.x Release: net8.0 and Microsoft.Data.SqlClient support #75
Workflow file for this run
This file contains 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: Package Build CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
paths: | |
- '*' | |
- '!/docs/*' # Don't run workflow when files are only in the /docs directory | |
jobs: | |
build: | |
name: Ubuntu | |
runs-on: ubuntu-latest | |
services: | |
mongo: | |
image: mongo | |
ports: | |
- 27017/tcp | |
env: | |
MONGO_INITDB_DATABASE: test | |
postgres: | |
image: postgres | |
ports: | |
- 5432/tcp | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: test | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
sqlserver: | |
image: mcr.microsoft.com/mssql/server:2017-latest-ubuntu | |
ports: | |
- 1433/tcp | |
env: | |
ACCEPT_EULA: Y | |
SA_PASSWORD: g0d4mm!tSQLServer | |
mysql: | |
image: mysql | |
ports: | |
- 3306/tcp | |
env: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: test | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: .NET Build | |
run: dotnet build Build.csproj -c Release /p:CI=true | |
- name: .NET Test | |
run: dotnet test Build.csproj -c Release --no-build /p:CI=true | |
env: | |
EnableTestLogging: true | |
MongoDBConnectionString: mongodb://localhost:${{ job.services.mongo.ports[27017] }}/test | |
MySQLConnectionString: server=localhost;Port=${{ job.services.mysql.ports[3306] }};Uid=root;Pwd=root;Database=test;Allow User Variables=true | |
PostgreSqlConnectionString: Server=localhost;Port=${{ job.services.postgres.ports[5432] }};Database=test;User Id=postgres;Password=postgres; | |
SQLServerConnectionString: Server=tcp:127.0.0.1,${{ job.services.sqlserver.ports[1433] }};Database=tempdb;User Id=sa;Password=g0d4mm!tSQLServer; | |
- name: .NET Lib Pack | |
run: dotnet pack Build.csproj --no-build -c Release /p:Packing=true /p:PackageOutputPath=$PWD/.nupkgs /p:CI=true |