Skip to content

Fix JoinTo error.

Fix JoinTo error. #83

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Pull SqlServer
run: docker pull mcr.microsoft.com/mssql/server
- name: Start SqlServer
run: docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=yourStrong(!)Password" --name sqlserver -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest
- name: Enable SqlServer Agent (required for CDC)
run: docker exec -u root sqlserver bash /opt/mssql/bin/mssql-conf set sqlagent.enabled true
- name: Restart SqlServer
run: docker container restart sqlserver
- name: Sleep (allow SqlServer to complete startup)
run: sleep 10
- name: Set EnvVar for Test
run: echo "SqlServerDemo_ConnectionStrings__SqlDb=Data Source=localhost, 1433;Initial Catalog=NTangleDemo;User id=sa;Password=yourStrong(!)Password;TrustServerCertificate=true" >> $GITHUB_ENV
- name: Test
run: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=./coverage/lcov.info --no-build --verbosity normal
- name: Merge Code Coverage
run: |
mkdir ./coverage
npx lcov-result-merger '**/lcov.info' './coverage/lcov.info'
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: ./samples/SqlServerDemo/SqlServerDemo.Test/coverage/lcov.info