Skip to content

Fix BadHttpRequestException: Unexpected end of request content. #297

Fix BadHttpRequestException: Unexpected end of request content.

Fix BadHttpRequestException: Unexpected end of request content. #297

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the develop-v5.2 branch
push:
branches: [ develop-v6.1 ]
pull_request:
branches: [ develop-v6.1 ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build-postgres"
build-postgres:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Service containers to run with `runner-job`
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: flexberry/alt.p8-postgresql-postgis
# Provide the password for postgres
env:
POSTGRES_PASSWORD: p@ssw0rd
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
env:
ConnectionStringPostgres: "SERVER=localhost;User ID=postgres;Password=p@ssw0rd;Port=5432;"
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Restore NewPlatform.Flexberry.ORM.ODataService.sln
run: nuget restore NewPlatform.Flexberry.ORM.ODataService.sln -NonInteractive
- name: Install xunit.runner.console
run: nuget install xunit.runner.console -Version 2.4.1 -OutputDirectory testrunner
- name: Compile code
run: msbuild /verbosity:quiet /p:WarningLevel=0 /p:Configuration=Debug NewPlatform.Flexberry.ORM.ODataService.sln
- name: Test under mono
run: mono ./testrunner/xunit.runner.console.2.4.1/tools/net461/xunit.console.exe ./Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/bin/Debug/net461/NewPlatform.Flexberry.ORM.ODataService.Tests.dll
- name: Test under dotnet
run: dotnet test ./Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/bin/Debug/netcoreapp3.1/NewPlatform.Flexberry.ORM.ODataService.Tests.dll
- name: Cleanup
if: always()
run: |
rm -Rf .ssh .github *
# This workflow contains a single job called "build-mssql"
build-mssql:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Service containers to run with `runner-job`
services:
# Label used to access the service container
mssql:
# Docker Hub image
image: mcr.microsoft.com/mssql/server:2019-latest
# Provide the password for mssql
env:
ACCEPT_EULA: Y
SA_PASSWORD: p@ssw0rd
# Set health checks to wait until mssql has started
options: >-
--health-cmd "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${SA_PASSWORD} -Q 'SELECT 1' -b -o /dev/null"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 1433 on service container to the host
- 1433:1433
env:
ConnectionStringMssql: "SERVER=localhost;User ID=sa;Password=p@ssw0rd;"
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Restore NewPlatform.Flexberry.ORM.ODataService.sln
run: nuget restore NewPlatform.Flexberry.ORM.ODataService.sln -NonInteractive
- name: Install xunit.runner.console
run: nuget install xunit.runner.console -Version 2.4.1 -OutputDirectory testrunner
- name: Compile code
run: msbuild /verbosity:quiet /p:WarningLevel=0 /p:Configuration=Debug NewPlatform.Flexberry.ORM.ODataService.sln
- name: Test under mono
run: mono ./testrunner/xunit.runner.console.2.4.1/tools/net461/xunit.console.exe ./Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/bin/Debug/net461/NewPlatform.Flexberry.ORM.ODataService.Tests.dll
- name: Test under dotnet
run: dotnet test ./Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/bin/Debug/netcoreapp3.1/NewPlatform.Flexberry.ORM.ODataService.Tests.dll
- name: Cleanup
if: always()
run: |
rm -Rf .ssh .github *
# This workflow contains a single job called "doxygen"
doxygen:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Requiring dependent jobs to be successful
needs: [build-postgres, build-mssql]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install apt-get packages
run: sudo apt-get install -y doxygen
- name: Update documentation
run: |
[ $GITHUB_EVENT_NAME == 'push' ] &&
( [ $GITHUB_REF == "refs/heads/master" ] || [ $GITHUB_REF == "refs/heads/develop" ] ) &&
bash Doxygen/update-autodoc.sh
exit 0
- name: Cleanup
if: always()
run: |
rm -Rf .ssh .github *