-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (54 loc) · 1.94 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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: '8.0.x'
- name: Build and Test Orchestrator
working-directory: apps/orchestrator/PaperBoy.Orchestrator.Tests/
run: |
dotnet test --configuration Release
- name: Publish Orchestrator
working-directory: apps/orchestrator/PaperBoy.Orchestrator/
run: dotnet publish --configuration Release --output ../../../dist/orchestrator
- name: Build and Test Content Store
working-directory: apps/contentstore/PaperBoy.ContentStore.Tests/
run: |
dotnet test --configuration Release
- name: Publish Content Store
working-directory: apps/contentstore/PaperBoy.ContentStore/
run: dotnet publish --configuration Release --output ../../../dist/contentstore
- name: Build and Test Content Processor
working-directory: apps/contentprocessor/PaperBoy.ContentProcessor.Tests/
run: |
dotnet test --configuration Release
- name: Publish Content Processor
working-directory: apps/contentprocessor/PaperBoy.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