Starting of fast method invoker. #235
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: NStore CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
dotnet: [ '6.0.201'] #, '2.2.301', '3.0.100-preview9-014004' ] | |
os: ['ubuntu-latest'] #['windows-latest', 'ubuntu-latest', 'macOS-latest'] | |
name: Build for .NET ${{ matrix.dotnet }} | |
steps: | |
# We want the build to continue not to block at the very first error | |
# continue-on-error: true | |
- uses: actions/checkout@v1 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ matrix.dotnet }} | |
- name: Build with dotnet | |
run: dotnet build src/NStore.sln --configuration Release | |
- name: Start Docker for MSSSql | |
run: docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=sqlPw3$secure' -e 'MSSQL_PID=Developer' -p 1433:1433 --name msssql -d mcr.microsoft.com/mssql/server:2017-latest-ubuntu | |
- name: Start Docker for Mongodb | |
run: docker run -d -p 27017:27017 mongo | |
- name: Dump mssql docker logs | |
run: docker logs msssql | |
- name: Run Tests - Core | |
run: dotnet test src/NStore.Core.Tests/NStore.Core.Tests.csproj --configuration Release --no-build | |
- name: Run Tests - Domain | |
run: dotnet test src/NStore.Domain.Tests/NStore.Domain.Tests.csproj --configuration Release --no-build | |
- name: Run Tests - MongoDb | |
env: | |
NSTORE_MONGODB: mongodb://localhost/nstore | |
run: dotnet test src/NStore.Persistence.Mongo.Tests/NStore.Persistence.Mongo.Tests.csproj --configuration Release --no-build | |
#- name: Try to connect to mssql from inside the image | |
# run: docker exec -it msssql /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P sqlPw3$secure | |
- name: Run Tests - MsSql | |
env: | |
NSTORE_MSSQL: Server=localhost;user id=sa;password=sqlPw3$secure | |
run: dotnet test src/NStore.Persistence.MsSql.Tests/NStore.Persistence.MsSql.Tests.csproj --configuration Release --no-build | |
- name: Dump mssql docker logs after tests | |
run: docker logs msssql | |
- name: Run Tests - Sql Lite | |
run: dotnet test src/NStore.Persistence.Sqlite.Tests/NStore.Persistence.Sqlite.Tests.csproj --configuration Release --no-build | |
- name: Run Tests - LiteDb | |
run: dotnet test src/NStore.Persistence.LiteDB.Tests/NStore.Persistence.LiteDB.Tests.csproj --configuration Release --no-build |