Skip to content

Commit

Permalink
Update NuGet workflows and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
likp committed May 2, 2024
1 parent b05a5e2 commit 3abc1fd
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
38 changes: 38 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This is a basic workflow to help you get started with Actions

name: BuildAndRunTests

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
os: [windows-latest, ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Restore dependencies
run: dotnet restore

- name: Build the application
run: dotnet build --no-restore --configuration ${{ matrix.configuration }}

- name: Execute unit tests
run: dotnet test --verbosity normal
8 changes: 4 additions & 4 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ on:
jobs:
release:

runs-on: windows-2019
runs-on: windows-2022

steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: microsoft/setup-msbuild@v1
- uses: microsoft/setup-msbuild@v2

- uses: NuGet/setup-nuget@v1
- uses: NuGet/setup-nuget@v2

- name: Restore NuGet packages
run: nuget restore
Expand Down

0 comments on commit 3abc1fd

Please sign in to comment.