Skip to content

Commit f304142

Browse files
authored
Create dotnet.yml
1 parent 456a06d commit f304142

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 CI
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
paths: src/Application/**
10+
pull_request:
11+
branches: [ main ]
12+
paths: src/Application/**
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v3
24+
25+
- name: Restore dependencies
26+
run: dotnet restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj
27+
- name: Build
28+
run: dotnet build --no-restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj
29+
- name: Test
30+
run: dotnet test --no-build --verbosity normal ./src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj

0 commit comments

Comments
 (0)