Skip to content

Commit b6541ef

Browse files
ci: restore GitHub Actions .NET build
1 parent dd34049 commit b6541ef

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: .NET
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
build_and_test:
15+
name: Build and Test
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v4
24+
with:
25+
dotnet-version: "10.0.x"
26+
include-prerelease: true
27+
cache: true
28+
cache-dependency-path: |
29+
**/*.csproj
30+
**/*.props
31+
**/*.targets
32+
**/packages.lock.json
33+
34+
- name: Restore
35+
run: dotnet restore CoreIdent.sln
36+
37+
- name: Build
38+
run: dotnet build CoreIdent.sln -c Release --no-restore
39+
40+
- name: Test
41+
run: dotnet test CoreIdent.sln -c Release --no-build --verbosity normal

0 commit comments

Comments
 (0)