diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml new file mode 100644 index 0000000..97835ad --- /dev/null +++ b/.github/workflows/dotnet-core.yml @@ -0,0 +1,25 @@ +name: .NET Core + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.300 + - name: Install dependencies + run: dotnet restore RestApi.sln + - name: Build + run: dotnet build --configuration Release --no-restore RestApi.sln + - name: Test + run: dotnet test --no-restore --verbosity normal RestApi.sln diff --git a/RestApi.Test/SetUp.cs b/RestApi.Test/SetUp.cs index ab36666..85987b6 100644 --- a/RestApi.Test/SetUp.cs +++ b/RestApi.Test/SetUp.cs @@ -12,7 +12,7 @@ namespace RestApi.Test [SetUpFixture] public class SetUp { - public const int ApiServiceStartUpTimeoutSeconds = 7; + public const int ApiServiceStartUpTimeoutSeconds = 60; public static Task ApiService; public const string ApiServiceBaseUrl = "https://localhost:62184";