зеркало из https://github.com/Azure/benchpress.git
add compilation stage to dotnet pipelines (#25)
* adding dotnet restore and build steps into dotnet pr pipeline * removing non-existent project * adding new words and merging separate words sections
This commit is contained in:
Родитель
53b2d2a218
Коммит
005542bfec
|
@ -11,9 +11,17 @@ on:
|
|||
- "samples/dotnet/**"
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
DOTNET_VERSION: '6.0.x'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
name: lint-${{matrix.os}}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ ubuntu-latest ]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
@ -31,4 +39,15 @@ jobs:
|
|||
DISABLE_LINTERS: REPOSITORY_CHECKOV,REPOSITORY_TRIVY
|
||||
FILTER_REGEX_EXCLUDE: '(BenchPress/|engine/|examples/|/docs|\.github/workflows|\.devcontainer|\.editorconfig|\.gitmodules|\.sln|\.md|LICENSE|/framework/python|samples/python)'
|
||||
FILTER_REGEX_INCLUDE: '(framework/dotnet|samples/dotnet)'
|
||||
REPORT_OUTPUT_FOLDER: ${GITHUB_WORKSPACE}/megalinter-reports
|
||||
REPORT_OUTPUT_FOLDER: ${GITHUB_WORKSPACE}/megalinter-reports
|
||||
|
||||
- name: Setup dotnet
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: ${{ env.DOTNET_VERSION }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: dotnet restore
|
||||
|
||||
- name: Build
|
||||
run: dotnet build --configuration Release --no-restore
|
||||
|
|
|
@ -13,8 +13,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "framework", "framework", "{
|
|||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "dotnet", "dotnet", "{8223C874-C45A-4ABE-A340-893ED768661C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BenchPress.Module", "framework\dotnet\BenchPress.Module\BenchPress.Module.csproj", "{D9BEFD0F-AC9B-4EA8-AC27-54189778729B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BenchPress.TestFramework", "framework\dotnet\BenchPress.TestFramework\BenchPress.TestFramework.csproj", "{B7C203B4-865B-4D63-B3D3-8A90990AC13A}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BenchPress.TestFramework.Tests", "framework\dotnet\BenchPress.TestFramework.Tests\BenchPress.TestFramework.Tests.csproj", "{B1BC5E2E-2694-4E49-908A-F9CBD387DD89}"
|
||||
|
@ -42,10 +40,6 @@ Global
|
|||
{AD2CE189-AB17-4B0E-A01A-DE8B14280C6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{AD2CE189-AB17-4B0E-A01A-DE8B14280C6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{AD2CE189-AB17-4B0E-A01A-DE8B14280C6C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{D9BEFD0F-AC9B-4EA8-AC27-54189778729B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D9BEFD0F-AC9B-4EA8-AC27-54189778729B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D9BEFD0F-AC9B-4EA8-AC27-54189778729B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D9BEFD0F-AC9B-4EA8-AC27-54189778729B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B7C203B4-865B-4D63-B3D3-8A90990AC13A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B7C203B4-865B-4D63-B3D3-8A90990AC13A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B7C203B4-865B-4D63-B3D3-8A90990AC13A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
|
@ -63,7 +57,6 @@ Global
|
|||
{19C5E14A-FCA3-4335-A25C-D6DA88BE3099} = {29011A2E-34D3-468C-AA6F-C5AD5597970D}
|
||||
{AD2CE189-AB17-4B0E-A01A-DE8B14280C6C} = {29011A2E-34D3-468C-AA6F-C5AD5597970D}
|
||||
{8223C874-C45A-4ABE-A340-893ED768661C} = {37AC63C5-5039-4217-8170-80C7AF5831B3}
|
||||
{D9BEFD0F-AC9B-4EA8-AC27-54189778729B} = {8223C874-C45A-4ABE-A340-893ED768661C}
|
||||
{B7C203B4-865B-4D63-B3D3-8A90990AC13A} = {8223C874-C45A-4ABE-A340-893ED768661C}
|
||||
{B1BC5E2E-2694-4E49-908A-F9CBD387DD89} = {8223C874-C45A-4ABE-A340-893ED768661C}
|
||||
{4596A437-B726-43F7-AAD2-89BE5ECAECFB} = {BEBFA54D-228E-49F8-87F0-27D50FF25743}
|
||||
|
|
|
@ -1,38 +1,56 @@
|
|||
{
|
||||
"ignorePaths": [
|
||||
"**/node_modules/**",
|
||||
"**/vscode-extension/**",
|
||||
"**/.git/**",
|
||||
"**/.pnpm-lock.json",
|
||||
".vscode",
|
||||
"megalinter",
|
||||
"package-lock.json",
|
||||
"report"
|
||||
],
|
||||
"language": "en",
|
||||
"noConfigSearch": true,
|
||||
"words": ["megalinter", "oxsecurity"],
|
||||
"version": "0.2",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment-single-line",
|
||||
"pattern": "/#.*/g"
|
||||
},
|
||||
{
|
||||
"name": "comment-multi-line",
|
||||
"pattern": "/(?:\\/\\*[\\s\\S]*?\\*\\/)/g"
|
||||
},
|
||||
// combine multiple named patterns into one single named pattern
|
||||
{
|
||||
"name": "comments",
|
||||
"pattern": ["comment-single-line", "comment-multi-line"]
|
||||
}
|
||||
],
|
||||
"ignoreRegExpList": ["comments", "/^\\s*`[\\s\\S]*?^\\s*`/gm", "/^\\s*```[\\s\\S]*?^\\s*```/gm"],
|
||||
"words": [
|
||||
"onboardsupport",
|
||||
"MSRC",
|
||||
"msrc",
|
||||
"Benchpress"
|
||||
]
|
||||
"ignorePaths": [
|
||||
"**/node_modules/**",
|
||||
"**/vscode-extension/**",
|
||||
"**/.git/**",
|
||||
"**/.pnpm-lock.json",
|
||||
".vscode",
|
||||
"megalinter",
|
||||
"package-lock.json",
|
||||
"report"
|
||||
],
|
||||
"language": "en",
|
||||
"noConfigSearch": true,
|
||||
"words": [
|
||||
"megalinter",
|
||||
"oxsecurity",
|
||||
"hadolint",
|
||||
"jsonlint",
|
||||
"isort",
|
||||
"mypy",
|
||||
"pylint",
|
||||
"pyright",
|
||||
"devskim",
|
||||
"dustilock",
|
||||
"gitleaks",
|
||||
"syft",
|
||||
"trivy",
|
||||
"onboardsupport",
|
||||
"MSRC",
|
||||
"msrc",
|
||||
"Benchpress"
|
||||
],
|
||||
"version": "0.2",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment-single-line",
|
||||
"pattern": "/#.*/g"
|
||||
},
|
||||
{
|
||||
"name": "comment-multi-line",
|
||||
"pattern": "/(?:\\/\\*[\\s\\S]*?\\*\\/)/g"
|
||||
},
|
||||
{
|
||||
"name": "comments",
|
||||
"pattern": [
|
||||
"comment-single-line",
|
||||
"comment-multi-line"
|
||||
]
|
||||
}
|
||||
],
|
||||
"ignoreRegExpList": [
|
||||
"comments",
|
||||
"/^\\s*`[\\s\\S]*?^\\s*`/gm",
|
||||
"/^\\s*```[\\s\\S]*?^\\s*```/gm"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -8,6 +8,10 @@
|
|||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<GlobalAnalyzerConfigFiles Include="../../../.globalconfig" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
|
||||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
|
@ -21,8 +25,4 @@
|
|||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<GlobalAnalyzerConfigFiles Include="../../../.globalconfig" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
Загрузка…
Ссылка в новой задаче