Add WithConstraint to [Default] attribute #1147
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: Build ServiceStack | |
on: | |
push: | |
paths: | |
- 'ServiceStack/**' | |
- '.github/workflows/build-servicestack.yml' | |
jobs: | |
build-servicestack: | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
contents: read | |
services: | |
redis: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
sqlserver: | |
image: mcr.microsoft.com/mssql/server:2017-latest | |
env: | |
ACCEPT_EULA: Y | |
SA_PASSWORD: Test!tesT | |
MSSQL_PID: Developer | |
ports: | |
- 48501:1433 | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: test | |
POSTGRES_DB: test | |
ports: | |
- 48303:5432 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.100' | |
- name: Build | |
working-directory: ServiceStack/build | |
run: dotnet build ./build.proj | |
- name: Env setup | |
run: | | |
echo "SERVICESTACK_LICENSE=${{ secrets.SERVICESTACK_LICENSE }}" >> $GITHUB_ENV | |
echo "CI_RABBITMQ=gistlyn.com:45672" >> $GITHUB_ENV | |
echo "CI_DYNAMODB=http://gistlyn.com:48000" >> $GITHUB_ENV | |
- name: Test Extensions | |
run: dotnet test --framework net8.0 ./ServiceStack/tests/ServiceStack.Extensions.Tests/ServiceStack.Extensions.Tests.csproj --logger 'trx;LogFileName=results.trx' | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: Common Tests | |
only-summary: 'true' | |
path: ./ServiceStack/tests/ServiceStack.Extensions.Tests/TestResults/results.trx | |
reporter: dotnet-trx | |
- name: Test Common | |
run: dotnet test --framework net8.0 ./ServiceStack/tests/ServiceStack.Common.Tests/ServiceStack.Common.Tests.csproj --logger 'trx;LogFileName=results.trx' | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: Common Tests | |
only-summary: 'true' | |
path: ./ServiceStack/tests/ServiceStack.Common.Tests/TestResults/results.trx | |
reporter: dotnet-trx | |
- name: Test ServiceModels | |
run: dotnet test --framework net8.0 ./ServiceStack/tests/ServiceStack.ServiceModel.Tests/ServiceStack.ServiceModel.Tests.csproj --logger 'trx;LogFileName=results.trx' | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: ServiceModels Tests | |
only-summary: 'true' | |
path: ./ServiceStack/tests/ServiceStack.ServiceModel.Tests/TestResults/results.trx | |
reporter: dotnet-trx | |
- name: Test WebHost Endpoints | |
env: | |
PGSQL_CONNECTION: Server=localhost;Port=48303;User Id=postgres;Password=test;Database=test;Pooling=true;MinPoolSize=0;MaxPoolSize=200 | |
MSSQL_CONNECTION: Server=localhost,48501;Database=master;User Id=sa;Password=Test!tesT;MultipleActiveResultSets=True; | |
run: dotnet test --framework net8.0 ./ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/ServiceStack.WebHost.Endpoints.Tests.csproj --logger 'trx;LogFileName=results.trx' --logger 'console;verbosity=detailed' | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: WebHost.Endpoints Tests | |
only-summary: 'true' | |
path: ./ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/TestResults/results.trx | |
reporter: dotnet-trx | |