Skip to content

Commit cf8899f

Browse files
committed
Add GitHub Actions workflow for build and test
1 parent 91634d5 commit cf8899f

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/dotnet-ci.yml

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

0 commit comments

Comments
 (0)