Skip to content

Commit 765f721

Browse files
committed
🤖ci: add .NET build & test GitHub Actions workflow
- Added GitHub Actions workflow to build and test the solution - Runs on push and pull requests targeting the main branch - Uses .NET 8 and executes restore, build, and test steps
1 parent e805010 commit 765f721

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: .NET Build and Test
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: 8.0.x
21+
22+
- name: Restore dependencies
23+
run: dotnet restore Finance.sln
24+
25+
- name: Build
26+
run: dotnet build Finance.sln --no-restore --configuration Release
27+
28+
- name: Test
29+
run: dotnet test Finance.sln --no-build --verbosity normal --configuration Release

0 commit comments

Comments
 (0)