Skip to content

Commit e5191c4

Browse files
Create dotnet.yml
1 parent 91e1fb9 commit e5191c4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET Build
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
paths:
10+
- '/src/Application/**'
11+
pull_request:
12+
paths:
13+
- '/src/Application/**'
14+
15+
defaults:
16+
run:
17+
shell: bash
18+
working-directory: ./src/Application
19+
20+
jobs:
21+
build:
22+
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: Setup .NET
28+
uses: actions/setup-dotnet@v4
29+
with:
30+
dotnet-version: 8.0.x
31+
- name: Restore dependencies
32+
run: dotnet restore
33+
- name: Build
34+
run: dotnet build --no-restore
35+
- name: Test
36+
run: dotnet test --no-build --verbosity normal

0 commit comments

Comments
 (0)