Skip to content

Updated github workflow actions to latest versions. #123

Updated github workflow actions to latest versions.

Updated github workflow actions to latest versions. #123

name: build and tests
on:
push:
# Trigger workflow for commits only, not for tags.
branches:
- '**'
pull_request:
workflow_dispatch:
jobs:
build_and_test:
runs-on: windows-2022
timeout-minutes: 20
steps:
- uses: actions/checkout@v4.1.4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup VSTest
uses: darenm/Setup-VSTest@v1.3
- name: Setup NuGet
uses: NuGet/setup-nuget@v2.0.0
- name: Restore dependencies
run: nuget restore VSDoxyHighlighter.sln
- name: Build solution
run: msbuild /m /p:Configuration="Release" /p:platform="Any CPU" VSDoxyHighlighter.sln
- name: Upload VSIX file
uses: actions/upload-artifact@v4.3.3
with:
name: ReleaseVSIX
path: VSDoxyHighlighter/bin/Release/*.vsix
if-no-files-found: error
- name: Run tests
run: vstest.console.exe .\Tests\bin\Release\Tests.dll