Нежадная загрузка мастеров при обновлении объекта #262
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
# 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 ] | |
pull_request: | |
branches: [ develop ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
XUNIT_RUNNER: "2.4.1" | |
CONFIGURATION: "Debug" | |
# 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 | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
# Several .NET Core versions will be used during the test run. | |
# The lowest version gets installed first in order to prevent | |
# "a newer version is already installed" install errors. | |
- name: Install .NET Core 3.1 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 3.1.x | |
# Building requires an up-to-date .NET SDK. | |
- name: Install .NET 6.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
# Building requires an up-to-date .NET SDK. | |
- name: Install .NET 7.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore NewPlatform.Flexberry.ORM.ODataService.sln | |
run: dotnet restore NewPlatform.Flexberry.ORM.ODataService.sln | |
- name: Install xunit.runner.console | |
run: nuget install xunit.runner.console -Version $XUNIT_RUNNER -OutputDirectory testrunner | |
- name: Compile code | |
run: dotnet build --no-restore -v q /p:WarningLevel=0 -c $CONFIGURATION NewPlatform.Flexberry.ORM.ODataService.sln | |
- name: Test on dotnet 3.1 | |
run: dotnet test ./Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/bin/$CONFIGURATION/netcoreapp3.1/NewPlatform.Flexberry.ORM.ODataService.Tests.dll | |
- name: Test on dotnet 6.0 | |
run: dotnet test ./Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/bin/$CONFIGURATION/net6.0/NewPlatform.Flexberry.ORM.ODataService.Tests.dll | |
- name: Test on dotnet 7.0 | |
run: dotnet test ./Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/bin/$CONFIGURATION/net7.0/NewPlatform.Flexberry.ORM.ODataService.Tests.dll | |
- name: Test under mono | |
run: mono ./testrunner/xunit.runner.console.$XUNIT_RUNNER/tools/net461/xunit.console.exe ./Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/bin/$CONFIGURATION/net461/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 | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
# Several .NET Core versions will be used during the test run. | |
# The lowest version gets installed first in order to prevent | |
# "a newer version is already installed" install errors. | |
- name: Install .NET Core 3.1 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 3.1.x | |
# Building requires an up-to-date .NET SDK. | |
- name: Install .NET 6.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Install .NET 7.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore NewPlatform.Flexberry.ORM.ODataService.sln | |
run: dotnet restore NewPlatform.Flexberry.ORM.ODataService.sln | |
- name: Install xunit.runner.console | |
run: nuget install xunit.runner.console -Version $XUNIT_RUNNER -OutputDirectory testrunner | |
- name: Compile code | |
run: dotnet build --no-restore -v q /p:WarningLevel=0 -c $CONFIGURATION NewPlatform.Flexberry.ORM.ODataService.sln | |
- name: Test on dotnet 3.1 | |
run: dotnet test ./Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/bin/$CONFIGURATION/netcoreapp3.1/NewPlatform.Flexberry.ORM.ODataService.Tests.dll | |
- name: Test on dotnet 6.0 | |
run: dotnet test ./Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/bin/$CONFIGURATION/net6.0/NewPlatform.Flexberry.ORM.ODataService.Tests.dll | |
- name: Test on dotnet 7.0 | |
run: dotnet test ./Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/bin/$CONFIGURATION/net7.0/NewPlatform.Flexberry.ORM.ODataService.Tests.dll | |
- name: Test under mono | |
run: mono ./testrunner/xunit.runner.console.$XUNIT_RUNNER/tools/net461/xunit.console.exe ./Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/bin/$CONFIGURATION/net461/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 * |