-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from Davilarek/fix-cli-net-framework
Fix Github Actions build for NET Framework
- Loading branch information
Showing
1 changed file
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
# This workflow will build a .NET project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | ||
|
||
name: .NET | ||
name: .NET Framework | ||
|
||
on: | ||
push: | ||
branches: [ "dev" ] | ||
branches: [ "dev", "fix-cli-net-framework" ] | ||
pull_request: | ||
branches: [ "dev" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
|
||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 4.0 | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --no-restore | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal | ||
- uses: actions/checkout@v2 | ||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v1 | ||
- name: Setup NuGet | ||
uses: NuGet/setup-nuget@v1.0.5 | ||
- name: setup-msbuild | ||
uses: microsoft/setup-msbuild@v1.1 | ||
- name: Restore Packages | ||
run: nuget restore Naticord.sln | ||
- name: Build | ||
run: 'msbuild Naticord.sln -t:rebuild -property:Configuration=Release' | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal |