From a8b32c8efbb6ffae862ca16bd0dae20a774063c2 Mon Sep 17 00:00:00 2001 From: Lucas Trzesniewski Date: Thu, 29 Feb 2024 17:30:19 +0100 Subject: [PATCH] Update GitHub workflow --- .github/workflows/build.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a5e46ff..4403852 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,44 +2,44 @@ name: Build on: [push, pull_request] -jobs: +jobs: build: runs-on: windows-latest name: Build steps: - - uses: actions/checkout@v3 - + - uses: actions/checkout@v4 + - name: Setup - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 3.1.101 - + dotnet-version: 8.0 + - name: Update rider version from Directory.Build.props run: .\Abc.MoqComplete\Deployment\update_rider_version.ps1 shell: powershell - + - name: Clean run: dotnet clean Abc.MoqComplete\MoqComplete.sln --configuration Release && dotnet nuget locals all --clear - + - name: Install dependencies run: dotnet restore Abc.MoqComplete\MoqComplete.sln - + - name: Build run: dotnet build Abc.MoqComplete\MoqComplete.sln --configuration Release --no-restore - + - name: Test run: dotnet test Abc.MoqComplete\Abc.MoqComplete.Tests\bin\Abc.MoqComplete.Tests\Release\Abc.MoqComplete.Tests.dll --no-restore --verbosity normal - + - name: Pack run: dotnet pack Abc.MoqComplete\MoqComplete.sln --no-build --no-restore -c Release -o out - + - name: Fix rider plugin run: .\Abc.MoqComplete\Deployment\build_rider_plugin.ps1 out shell: powershell - + - name: Upload artifacts - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: BuildResult path: out - +