-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (46 loc) · 1.48 KB
/
dotnet.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
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build_backend:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore Backend Dependencies
run: dotnet restore
working-directory: ./Template_Web.Server
- name: Build Backend
run: dotnet build --no-restore
working-directory: ./Template_Web.Server
- name: Publish Backend
run: dotnet publish --configuration Release --output bin/Release/net8.0/publish
working-directory: ./Template_Web.Server
- name: Test Backend
run: dotnet test --no-build --verbosity normal
working-directory: ./Template_Web.Server
build_frontend:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install npm Dependencies
run: npm install
working-directory: ./template_web.client
- name: Build React app
run: npm run build
working-directory: ./template_web.client
run-name: Deploy to IIS