Skip to content

Commit bab22ec

Browse files
committed
Add dotnet.yml
1 parent 5539651 commit bab22ec

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
env:
13+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
14+
15+
jobs:
16+
build:
17+
18+
# Windows required: library uses Windows-only kernel32 P/Invoke APIs
19+
runs-on: windows-latest
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Setup .NET
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
dotnet-version: 10.0.x
27+
- name: Restore dependencies
28+
run: dotnet restore IniFile.slnx
29+
- name: Build
30+
run: dotnet build IniFile.slnx --no-restore
31+
- name: Test
32+
run: dotnet test IniFile.slnx --no-build --verbosity normal

0 commit comments

Comments
 (0)