Skip to content

Commit 3abc1fd

Browse files
committed
Update NuGet workflows and dependencies
1 parent b05a5e2 commit 3abc1fd

File tree

3 files changed

+57
-4
lines changed

3 files changed

+57
-4
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "nuget"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
- package-ecosystem: "github-actions"
13+
directory: "/"
14+
schedule:
15+
interval: "daily"

.github/workflows/msbuild.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: BuildAndRunTests
4+
5+
on:
6+
push:
7+
branches: ["master"]
8+
pull_request:
9+
branches: ["master"]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
strategy:
17+
matrix:
18+
configuration: [Debug, Release]
19+
os: [windows-latest, ubuntu-latest]
20+
21+
runs-on: ${{ matrix.os }}
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: Setup .NET
27+
uses: actions/setup-dotnet@v4
28+
with:
29+
dotnet-version: 8.0.x
30+
31+
- name: Restore dependencies
32+
run: dotnet restore
33+
34+
- name: Build the application
35+
run: dotnet build --no-restore --configuration ${{ matrix.configuration }}
36+
37+
- name: Execute unit tests
38+
run: dotnet test --verbosity normal

.github/workflows/nuget.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ on:
77
jobs:
88
release:
99

10-
runs-on: windows-2019
10+
runs-on: windows-2022
1111

1212
steps:
1313

14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717

18-
- uses: microsoft/setup-msbuild@v1
18+
- uses: microsoft/setup-msbuild@v2
1919

20-
- uses: NuGet/setup-nuget@v1
20+
- uses: NuGet/setup-nuget@v2
2121

2222
- name: Restore NuGet packages
2323
run: nuget restore

0 commit comments

Comments
 (0)