-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (35 loc) · 1.08 KB
/
build-and-test.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
# The purpose for this workflow is to have an working build and pass unit tests
# It will run on every push or PR
# Currently unit tests are not working, therefore they are diabled
name: Build and test on push or pull request
on:
push:
branches: [ "main" ]
paths:
- 'src/**'
- '.github/workflows/build-and-test.yml'
pull_request:
branches: [ "main" ]
paths:
- 'src/**'
- '.github/workflows/build-and-test.yml'
jobs:
build:
runs-on: windows-latest
env:
SolutionPath: src/cadide.sln
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore $env:SolutionPath
- name: Build
run: dotnet build --configuration Release --no-restore $env:SolutionPath
if: ${{true}}
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal $env:SolutionPath
if: ${{false}}