-
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.
chore: Add CI workflow for building and testing applications
- Loading branch information
Showing
1 changed file
with
73 additions
and
0 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,73 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '5.0.x' | ||
|
||
- name: Build and Test Orchestrator | ||
working-directory: apps/orchestrator | ||
run: | | ||
dotnet restore | ||
dotnet build --configuration Release | ||
dotnet test --configuration Release | ||
- name: Publish Orchestrator | ||
working-directory: apps/orchestrator | ||
run: dotnet publish --configuration Release --output ../../dist/orchestrator | ||
|
||
- name: Build and Test Content Store | ||
working-directory: apps/contentstore | ||
run: | | ||
dotnet restore | ||
dotnet build --configuration Release | ||
dotnet test --configuration Release | ||
- name: Publish Content Store | ||
working-directory: apps/contentstore | ||
run: dotnet publish --configuration Release --output ../../dist/contentstore | ||
|
||
- name: Build and Test Content Processor | ||
working-directory: apps/contentprocessor | ||
run: | | ||
dotnet restore | ||
dotnet build --configuration Release | ||
dotnet test --configuration Release | ||
- name: Publish Content Processor | ||
working-directory: apps/contentprocessor | ||
run: dotnet publish --configuration Release --output ../../dist/contentprocessor | ||
|
||
- name: Upload Artifacts for Orchestrator | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Orchestrator | ||
path: dist/orchestrator | ||
|
||
- name: Upload Artifacts for Content Store | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Content Store | ||
path: dist/contentstore | ||
|
||
- name: Upload Artifacts for Content Processor | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Content Processor | ||
path: dist/contentprocessor |