Skip to content

Commit

Permalink
Fix running tests locally and in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle committed Dec 14, 2023
1 parent ed218f6 commit 335153e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,17 @@ jobs:
shell: pwsh
run: swift test --verbose --skip-build

- name: Build Test WinRT Component
working-directory: InteropTests
shell: pwsh
run: '& .\BuildWinRTComponent.ps1'

- name: Build InteropTests
working-directory: InteropTests
shell: pwsh
run: '& .\Build.ps1'
run: swift build --verbose --build-tests

- name: Run InteropTests
working-directory: InteropTests
shell: pwsh
run: '& .\Run.ps1'
run: swift test --verbose --skip-build
2 changes: 1 addition & 1 deletion InteropTests/BuildWinRTComponent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ Copy-Item -Path "$PSScriptRoot\GeneratedPackage.swift" -Destination "$PSScriptRo

Write-Host -ForegroundColor Cyan "Copying the WinRT component dll next to the test..."
$SwiftTestPackageDir = $PSScriptRoot
$SwiftTestBuildOutputDir = "$SwiftTestPackageDir\.build\$SwiftConfiguration"
$SwiftTestBuildOutputDir = "$SwiftTestPackageDir\.build\x86_64-unknown-windows-msvc\$SwiftConfiguration\"
Copy-Item -Path $TestComponentDir\WinRTComponent.dll -Destination $SwiftTestBuildOutputDir -Force

0 comments on commit 335153e

Please sign in to comment.