Update and rename build_test.yml to CI.yml

This commit is contained in:
Miku-666
2022-07-29 21:01:51 +02:00
committed by GitHub
parent 695295f3b8
commit 5eb3346058
2 changed files with 24 additions and 23 deletions
+24
View File
@@ -0,0 +1,24 @@
name: .NET
on:
pull_request:
push:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Restore NuGet Packages
run: nuget restore MinecraftUSkinEditor.sln
- name: Build Solution
run: msbuild MinecraftUSkinEditor.sln
-23
View File
@@ -1,23 +0,0 @@
name: .NET
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal