-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish transition of backend to using fluent validation and split up …
…github actions
- Loading branch information
1 parent
7ab457b
commit 9201abe
Showing
71 changed files
with
2,734 additions
and
485 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: .NET Build & Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
pull_request: | ||
branches: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
env: | ||
DOTNET_VERSION: '8.0.x' | ||
|
||
jobs: | ||
test: | ||
name: Build & Test | ||
runs-on: ubuntu-latest | ||
env: | ||
DatabaseConfiguration__UseInMemoryDb: true | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: Restore Tools | ||
run: | | ||
cd Backend/Bones.Api | ||
dotnet tool restore | ||
cd ../.. | ||
cd Frontend/Bones.Api.Client | ||
dotnet tool restore | ||
cd ../.. | ||
- name: Build | ||
run: | | ||
dotnet build --no-incremental | ||
git diff --quiet || exit 1 | ||
- name: Test | ||
run: dotnet test --no-build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build Client Artifact | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
pull_request: | ||
branches: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
env: | ||
DOTNET_VERSION: '8.0.x' | ||
|
||
jobs: | ||
client: | ||
name: Publish Client | ||
runs-on: ubuntu-latest | ||
env: | ||
DatabaseConfiguration__UseInMemoryDb: true | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: Restore Tools | ||
run: | | ||
cd Frontend/Bones.Api.Client | ||
dotnet tool restore | ||
cd ../.. | ||
- name: Publish | ||
run: | | ||
dotnet publish Frontend/Bones.WebUI/Bones.WebUI.csproj --configuration Release --property PublishDir=~/publish | ||
- name: Upload Build Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: webui-wasm-client | ||
path: ~/publish |
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
Oops, something went wrong.