Skip to content

Commit

Permalink
chore: Add CI workflow for building and testing applications
Browse files Browse the repository at this point in the history
  • Loading branch information
wmeints committed Jul 30, 2024
1 parent e13e6ef commit 7c82bdc
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/ci.yml
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

0 comments on commit 7c82bdc

Please sign in to comment.