mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
* [macOS] Fail Pester tests on error * return it back * added new tests * added new tests for Macos part2 * fixed nitpicks * vsmac changes * remove toolcache fron high sierra
37 lines
882 B
PowerShell
37 lines
882 B
PowerShell
$os = Get-OSVersion
|
|
|
|
Describe "Rust" -Skip:($os.IsHighSierra) {
|
|
Context "Rust" {
|
|
It "Rustup is installed" {
|
|
"rustup --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Rustc is installed" {
|
|
"rustc --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Context "Cargo" {
|
|
It "Cargo is installed" {
|
|
"cargo --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Context "Cargo dependencies" {
|
|
It "bindgen" {
|
|
"bindgen --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "cbindgen" {
|
|
"cbindgen --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Cargo audit" {
|
|
"cargo audit --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Cargo outdated" {
|
|
"cargo outdated --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
} |