Skip to content

Commit 67d146e

Browse files
committed
feat: add build workflow configurations for production and development environments
1 parent ec5ba59 commit 67d146e

2 files changed

Lines changed: 0 additions & 40 deletions

File tree

‎.github/workflows/build-dev.yml‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,3 @@ jobs:
4646

4747
- name: Build
4848
run: dotnet build src\IoTPowerShellAgent\IoTPowerShellAgent.csproj --configuration Debug /p:Version=${{ steps.version.outputs.version }}
49-
50-
- name: Test
51-
run: dotnet test src\IoTPowerShellAgent.Tests\IoTPowerShellAgent.Tests.csproj --configuration Debug --logger trx
52-
53-
- name: Run Pester Tests
54-
shell: pwsh
55-
run: |
56-
if (Test-Path "src\IoTPowerShellAgent.Tests.Pester\run-pester.ps1") {
57-
Set-Location src\IoTPowerShellAgent.Tests.Pester
58-
.\run-pester.ps1 -OutputFormat NUnitXml -OutputFile PesterResults.xml
59-
Set-Location ..\..
60-
} else {
61-
Write-Host "Pester tests not found, skipping..."
62-
}
63-
64-
- name: Publish test results
65-
if: always()
66-
uses: EnricoMi/publish-unit-test-result-action/composite@v2
67-
with:
68-
files: "**/*.trx,**/PesterResults.xml"

‎.github/workflows/build-prod.yml‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,3 @@ jobs:
4444

4545
- name: Build
4646
run: dotnet build src\IoTPowerShellAgent\IoTPowerShellAgent.csproj --configuration Release /p:Version=${{ steps.version.outputs.version }}
47-
48-
- name: Test
49-
run: dotnet test src\IoTPowerShellAgent.Tests\IoTPowerShellAgent.Tests.csproj --configuration Release --logger trx
50-
51-
- name: Run Pester Tests
52-
shell: pwsh
53-
run: |
54-
if (Test-Path "src\IoTPowerShellAgent.Tests.Pester\run-pester.ps1") {
55-
Set-Location src\IoTPowerShellAgent.Tests.Pester
56-
.\run-pester.ps1 -OutputFormat NUnitXml -OutputFile PesterResults.xml
57-
Set-Location ..\..
58-
} else {
59-
Write-Host "Pester tests not found, skipping..."
60-
}
61-
62-
- name: Publish test results
63-
if: always()
64-
uses: EnricoMi/publish-unit-test-result-action/composite@v2
65-
with:
66-
files: "**/*.trx,**/PesterResults.xml"

0 commit comments

Comments
 (0)