Skip to content

Commit

Permalink
Update dotnet_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiMatsuzawa committed Nov 28, 2023
1 parent 1085e18 commit 7f24edb
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/dotnet_test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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: MSTest
name: Build and Test

on:
push:
Expand All @@ -10,10 +10,8 @@ on:
branches: [ "master" ]

jobs:
build:

setup:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Add package source
Expand All @@ -22,5 +20,26 @@ jobs:
run: dotnet restore /property:Configuration="Debug vendor unsupported"
- name: Build
run: dotnet build --no-restore --configuration "Debug vendor unsupported" /property:BclBuildImported=Ignore

test:
needs: setup
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Test
run: dotnet test --no-build --verbosity normal --configuration "Debug vendor unsupported"

publish:
needs: test
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Publish
run: dotnet publish src/MSDIAL5/MsdialGuiApp/MsdialGuiApp.csproj -p:PublishProfile=FolderProfile -o artifact --configuration "Release vendor unsupported"
- name: Copy licenses
run: Copy-Item -Path LGPL.txt,THIRD-PARTH-LICENSE-README.md,README.md -Destination artifact
- name: Upload
uses: actions/upload-argifact@v3.1.2
with:
name: MSDIAL
path: artifact

0 comments on commit 7f24edb

Please sign in to comment.