Skip to content

Bump ossf/scorecard-action from 2.3.1 to 2.3.3 (#394) #546

Bump ossf/scorecard-action from 2.3.1 to 2.3.3 (#394)

Bump ossf/scorecard-action from 2.3.1 to 2.3.3 (#394) #546

name: .NET Core Desktop CI
on:
push:
paths-ignore:
- 'docs/**'
branches:
- master
pull_request:
paths-ignore:
- 'docs/**'
branches:
- master
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup NuGet.exe
uses: NuGet/setup-nuget@v2
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2.0.0
# Restore the application
- name: Restore the application
run: nuget restore ./src/XmlNotepad.sln
# Build the application
- name: Build the application
run: |
echo namespace XmlNotepad { public partial class AppAnalytics { private const string ApiKey=""; } } >> .\src\Model\ApiKey.cs
msbuild ./src/XmlNotepad.sln /p:Configuration=$env:Configuration /verbosity:minimal
env:
Configuration: ${{ matrix.configuration }}