Skip to content

Commit

Permalink
Update GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrzesniewski committed Feb 29, 2024
1 parent 2edf9ce commit a8b32c8
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a8b32c8

Please sign in to comment.