Skip to content

Commit

Permalink
Feature/testing proxy (#89)
Browse files Browse the repository at this point in the history
Next time checklist:
-[x] Have to checkout 🀭
-[x] Have to set a secret πŸ”‘
  • Loading branch information
svrooij authored Jul 24, 2024
1 parent 070062c commit 3b3e959
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/proxy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: πŸ§ͺ Test Proxy
name: πŸ§ͺ WinTuner proxy
on:
workflow_dispatch:
schedule:
Expand All @@ -11,6 +11,9 @@ jobs:
name: βœ… Check proxy
runs-on: ubuntu-latest
steps:
- name: πŸ‘¨β€πŸ’» Check-out code
uses: actions/checkout@v4

- name: πŸ“¦ Install Pester
shell: pwsh
run: Install-Module -Name Pester -Force -SkipPublisherCheck -Scope CurrentUser
Expand All @@ -21,8 +24,8 @@ jobs:
Import-Module Pester
$pesterConfig = [PesterConfiguration]@{
Output = @{
Verbosity = "Normal"
CIFormat = "Auto"
Verbosity = "Detailed"
CIFormat = "GithubActions"
StackTraceVerbosity = "FirstLine"
}
TestResult = @{
Expand All @@ -39,9 +42,14 @@ jobs:
}
}
Invoke-Pester -Configuration $pesterConfig
env:
WINTUNER_PROXY_CODE: ${{ secrets.WINTUNER_PROXY_TOKEN }}

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: ${{ github.workspace }}/testresults/*.xml
check_run: false
job_summary: true
compare_to_earlier_commit: false
3 changes: 1 addition & 2 deletions tests/WinTuner.Proxy.Tests/run.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
$pesterConfig = [PesterConfiguration]@{
Output = @{
Verbosity = "Normal"
Verbosity = "Detailed"
CIFormat = "Auto"
StackTraceVerbosity = "FirstLine"
}
OutputFormat = "NUnitXML"
TestResult = @{
Enabled = $true
OutputPath = "TestResults.xml"
Expand Down

0 comments on commit 3b3e959

Please sign in to comment.