-
Notifications
You must be signed in to change notification settings - Fork 29
39 lines (31 loc) · 985 Bytes
/
cibuild.yml
File metadata and controls
39 lines (31 loc) · 985 Bytes
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
name: Continuous Integration Build
on:
push:
branches: [ master ]
paths-ignore:
- '.github/workflows/**'
pull_request:
branches: [ master ]
paths-ignore:
- '.github/workflows/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build Api
run: dotnet build "Api/Api.csproj" --no-restore --configuration Release
- name: Copy sample config file to allow for the build to succeed
uses: canastro/copy-file-action@master
with:
source: "UnitTestProject/App.sample.config"
target: "UnitTestProject/app.config"
- name: Build UnitTest
run: dotnet build "UnitTestProject/UnitTestProject.csproj" --no-restore --configuration Release