forked from obfuscar/obfuscar
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from 3shape/features/new-build-process
Added a new build process
- Loading branch information
Showing
5 changed files
with
65 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Build & Test Obfuscar | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- ThreeShape.Obfuscar | ||
- 3shape | ||
|
||
env: | ||
ProjectFolder: 'Obfuscar' | ||
SolutionFile: 'Obfuscar.sln' | ||
NugetPackOutputDir: 'nuget-pack-out' | ||
configuration: 'Release' | ||
|
||
jobs: | ||
build-project: | ||
runs-on: windows-2022 | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Dotnet info | ||
run: dotnet --info | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: 'recursive' | ||
|
||
- name: Setup NuGet.exe | ||
uses: nuget/setup-nuget@v2 | ||
|
||
- name: Nuget restore project | ||
shell: pwsh | ||
run: | | ||
nuget restore ${{ env.SolutionFile }} | ||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v2 | ||
|
||
- name: Build project | ||
shell: pwsh | ||
run: | | ||
msbuild ${{ env.SolutionFile }} -p:Configuration=${{ env.configuration }} ` | ||
-m:1 ` | ||
-nr:false | ||
- name: Run unit tests | ||
shell: pwsh | ||
run: | | ||
$testFiles = Get-ChildItem -Path . -Filter "*test.dll" -Recurse | ForEach-Object { $_.FullName } | ||
foreach ($testFile in $testFiles) { | ||
dotnet test $testFile --logger trx | ||
} | ||
- name: Publish test results | ||
uses: phoenix-actions/test-reporting@v15 | ||
with: | ||
name: 'VsTest report results' | ||
path: '**/*.trx' | ||
reporter: 'dotnet-trx' | ||
output-to: 'step-summary' |
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
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
This file was deleted.
Oops, something went wrong.
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