Compare commits
73
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
75e36c43fc | ||
|
|
25dbcc6b76 | ||
|
|
966a4da981 | ||
|
|
b27884ccab | ||
|
|
9c152b6c8e | ||
|
|
197f37d03a | ||
|
|
2100770780 | ||
|
|
5d624b25d3 | ||
|
|
7c80a7413c | ||
|
|
a228799092 | ||
|
|
3c58de0c49 | ||
|
|
1d3c6bc7a6 | ||
|
|
57d836797d | ||
|
|
b9c84dc189 | ||
|
|
70808a0919 | ||
|
|
5ceac2150b | ||
|
|
5ad4c7e238 | ||
|
|
3f8b8a110b | ||
|
|
75dd533871 | ||
|
|
b1e24d3607 | ||
|
|
baae1a1d14 | ||
|
|
c017347fab | ||
|
|
97611366e7 | ||
|
|
fe5d6a1e6b | ||
|
|
c1ed670bb9 | ||
|
|
2ac80beb99 | ||
|
|
cbe3c2dddf | ||
|
|
89dc8e68da | ||
|
|
b1eb5c1434 | ||
|
|
bad3baa5f3 | ||
|
|
90ed9f4405 | ||
|
|
db3a5a6ccd | ||
|
|
bb92aa4f47 | ||
|
|
e22fc3fb1b | ||
|
|
83bdc6d108 | ||
|
|
7a7807efe4 | ||
|
|
cd6c263511 | ||
|
|
dd1dccd452 | ||
|
|
a279f75a49 | ||
|
|
8103e82868 | ||
|
|
0068339471 | ||
|
|
9775ff5bd5 | ||
|
|
5fb65e7614 | ||
|
|
b384db6cf4 | ||
|
|
d5a92c8c7a | ||
|
|
591538d2f1 | ||
|
|
704c5f0d4c | ||
|
|
277b4da05f | ||
|
|
60f4d20e96 | ||
|
|
666abb3120 | ||
|
|
a37ee671bf | ||
|
|
668644ee4e | ||
|
|
eb517ae414 | ||
|
|
1a2db9af67 | ||
|
|
fcf5edf2dd | ||
|
|
841e0600fd | ||
|
|
5626a13a63 | ||
|
|
41fdb77be3 | ||
|
|
aca67f852d | ||
|
|
09b7f7a2c7 | ||
|
|
0d226e5c96 | ||
|
|
b30f377e58 | ||
|
|
4f0a636095 | ||
|
|
c2b1b4700b | ||
|
|
2fde456a90 | ||
|
|
c5a40fe934 | ||
|
|
f9723553da | ||
|
|
23873336d7 | ||
|
|
db86528468 | ||
|
|
4e4c531f5a | ||
|
|
ae00798cf5 | ||
|
|
63721e3138 | ||
|
|
999531f0f5 |
@@ -8,10 +8,10 @@ on:
|
||||
types: [closed]
|
||||
branches:
|
||||
- production
|
||||
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build_and_deploy_job:
|
||||
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
|
||||
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'workflow_dispatch'
|
||||
runs-on: ubuntu-latest
|
||||
name: Build and Deploy Job
|
||||
steps:
|
||||
@@ -43,3 +43,4 @@ jobs:
|
||||
with:
|
||||
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ZEALOUS_CLIFF_09A0A7B10 }}
|
||||
action: "close"
|
||||
app_location: "/client"
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
name: Build and deploy ASP.Net Core app to Azure Web App - criminalmindsapi
|
||||
env:
|
||||
WORKING_DIRECTORY: ./server
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- production
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up .NET Core
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: '8.0.x'
|
||||
- name: Build with dotnet
|
||||
run: dotnet build --configuration Release
|
||||
working-directory: ${{ env.WORKING_DIRECTORY }}
|
||||
- name: dotnet publish
|
||||
run: dotnet publish -c Release -o release
|
||||
working-directory: ${{ env.WORKING_DIRECTORY }}
|
||||
- name: Upload artifact for deployment job
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: server
|
||||
path: ./server/release
|
||||
deploy:
|
||||
runs-on: windows-latest
|
||||
needs: build
|
||||
environment:
|
||||
name: 'production'
|
||||
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Download artifact from build job
|
||||
uses: actions/download-artifact@v4.1.7
|
||||
with:
|
||||
name: server
|
||||
- name: Login to Azure
|
||||
uses: azure/login@v1
|
||||
with:
|
||||
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_936FD4F727B94B4CA24C582D0863DF06 }}
|
||||
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_0FB05F3F513C480395D15114ABAF36E0 }}
|
||||
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_D1C0B88C12EF49D0BEEB5F2ACE6EC4FC }}
|
||||
- name: Deploy to Azure Web App
|
||||
id: deploy-to-webapp
|
||||
uses: azure/webapps-deploy@v2
|
||||
with:
|
||||
app-name: 'criminalmindsapi'
|
||||
slot-name: 'production'
|
||||
package: .
|
||||
|
||||
Generated
+6114
-3754
File diff suppressed because it is too large
Load Diff
+8
-4
@@ -12,7 +12,9 @@
|
||||
"@testing-library/react": "^13.3.0",
|
||||
"@testing-library/user-event": "^13.5.0",
|
||||
"bootstrap": "^5.1.3",
|
||||
"http-proxy-middleware": "^2.0.6",
|
||||
"http-proxy-middleware": "^2.0.7",
|
||||
"loader-utils": ">=2.0.3",
|
||||
"minimatch": ">=3.0.5",
|
||||
"nth-check": ">=2.0.1",
|
||||
"react": "^18.2.0",
|
||||
"react-bootstrap": "^2.4.0",
|
||||
@@ -21,9 +23,9 @@
|
||||
"react-loading-icons": "^1.1.0",
|
||||
"react-router": "^6.3.0",
|
||||
"react-router-dom": "^6.3.0",
|
||||
"react-scripts": "5.0.1",
|
||||
"web-vitals": "^2.1.4",
|
||||
"terser": ">=5.14.2"
|
||||
"react-scripts": "^5.0.1",
|
||||
"terser": ">=5.14.2",
|
||||
"web-vitals": "^2.1.4"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "set HTTPS=true&&react-scripts start",
|
||||
@@ -54,6 +56,8 @@
|
||||
"devDependencies": {
|
||||
"eslint-config-react-app": "^7.0.1",
|
||||
"jest-editor-support": "^30.1.0",
|
||||
"loader-utils": ">=2.0.3",
|
||||
"minimatch": ">=3.0.5",
|
||||
"terser": ">=5.14.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
@@ -9,15 +9,16 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="FluentAssertions" Version="6.7.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.6" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
|
||||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
|
||||
<PackageReference Include="FluentAssertions" Version="6.12.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.8" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
|
||||
<PackageReference Include="moq" Version="4.20.72" />
|
||||
<PackageReference Include="xunit" Version="2.9.2" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="coverlet.collector" Version="3.1.2">
|
||||
<PackageReference Include="coverlet.collector" Version="6.0.2">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
|
||||
@@ -92,6 +92,7 @@ namespace server.tests.v1.UnitTests
|
||||
character.Should().BeOfType<Quote>();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetQuoteByIdAsync_ValidIdForNonExistentQuote_Returns404StatusCodeWithProblemDetails()
|
||||
{
|
||||
var quoteId = "62b7d5506c1b407771829926";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
@@ -12,12 +12,11 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AspNetCoreRateLimit" Version="4.0.2" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.0.0" />
|
||||
<PackageReference Include="MongoDB.Driver" Version="2.16.0" />
|
||||
<PackageReference Include="Moq" Version="4.18.1" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.1" />
|
||||
<PackageReference Include="AspNetCoreRateLimit" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.1.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.1.0" />
|
||||
<PackageReference Include="MongoDB.Driver" Version="2.29.0" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.8.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user