Bump github/codeql-action from 3.26.5 to 3.26.7 #337
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Continuous integration | |
name: github-continuous-integration | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
security-events: write | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
configuration: [ 'Release', 'Debug', 'Release_Unicode', 'Debug_Unicode' ] | |
platform: [ 'Win32', 'x64' ] | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
submodules: 'recursive' | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7 | |
with: | |
languages: "cpp" | |
- name: "Build" | |
shell: pwsh | |
run: | | |
$path = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath | |
& $path\MSBuild\Current\Bin\amd64\msbuild.exe /m /p:Configuration="${{matrix.configuration}}" /p:Platform="${{matrix.platform}}" mfcmapi.sln | |
- name: Find vstest.console.exe | |
run: | | |
$VSDevTestCmd = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere" -latest -prerelease -products * -find Common7\IDE\Extensions\TestPlatform\vstest.console.exe | |
if (!$VSDevTestCmd) { exit 1 } | |
echo "Using VSDevTestCmd: ${VSDevTestCmd}" | |
Add-Content $env:GITHUB_ENV "VSDevTestCmd=$VSDevTestCmd" | |
- name: MFCMAPI UnitTests | |
run: cmd /c "$env:VSDevTestCmd" /Parallel /EnableCodeCoverage /Logger:trx "${{github.workspace}}\\bin\\${{matrix.platform}}\\UnitTest\\${{matrix.configuration}}\\UnitTest.dll" | |
# - name: Upload Event File | |
# uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
# with: | |
# name: Event File (${{ matrix.platform }} - ${{ matrix.configuration }}) | |
# path: ${{ github.event_path }} | |
- name: Upload Test Result Files | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
if: always() | |
with: | |
name: Test Results (${{ matrix.platform }} - ${{ matrix.configuration }}) | |
path: ${{github.workspace}}/**/TestResults/**/* | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7 | |
with: | |
category: "/language:cpp" | |
publish-test-results: | |
name: "Publish Tests Results" | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
# only needed unless run with comment_mode: off | |
pull-requests: write | |
if: always() | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- name: Download Artifacts | |
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
path: artifacts | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@82082dac68ad6a19d980f8ce817e108b9f496c2a # v2.17.1 | |
with: | |
files: "artifacts/**/*.trx" |