Add default permission to both codeql-analysis and unittest #27
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
name: Unit test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
permissions: read-all | |
jobs: | |
unittest: | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup msbuild | |
uses: microsoft/[email protected] | |
- name: Setup VSTest Path | |
uses: darenm/[email protected] | |
- name: Build unit test | |
run: msbuild SimpleComTest\SimpleComTest.vcxproj -property:"Configuration=Debug;Platform=x64" | |
- name: Run unit test | |
run: vstest.console.exe /Platform:x64 SimpleComTest\x64\Debug\SimpleComTest.dll |