Skip to content

Commit e814740

Browse files
authored
Update .NET workflow to use newer action versions
1 parent 0acce1c commit e814740

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
jobs:
13+
test:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v5
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v5
21+
with:
22+
dotnet-version: 10.0.x
23+
- name: Restore dependencies
24+
run: dotnet restore
25+
working-directory: Src/System.DisposableObject.sln
26+
- name: Build
27+
run: dotnet build --no-restore
28+
working-directory: Src/System.DisposableObject.sln
29+
- name: Test
30+
run: dotnet test --no-build --verbosity normal
31+
working-directory: Src/System.DisposableObject.sln

0 commit comments

Comments
 (0)