Skip to content

Commit 3390bed

Browse files
committed
Do not test decompress if not change
1 parent 7429206 commit 3390bed

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/Scoop-Decompress.Tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function test_extract($extract_fn, $from, $recurse) {
2121
$to
2222
}
2323

24-
Describe "Decompression function" -Tag 'Scoop' {
24+
Describe "Decompression function" -Tag 'Scoop', 'Decompress' {
2525
BeforeAll {
2626
$working_dir = setup_working "decompress"
2727
}

test/bin/test.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ if ($env:CI -eq $true) {
3232
$excludes += 'Scoop'
3333
}
3434

35-
$changed_scripts = (Get-GitChangedFile -Include 'decompress.ps1' -Commit $commit)
35+
$changed_scripts = (Get-GitChangedFile -Include '*decompress.ps1' -Commit $commit)
3636
if (!$changed_scripts) {
3737
Write-Warning "Skipping tests and code linting for decompress.ps1 files because it didn't change"
38+
Write-Warning (Get-GitChangedFile -Commit $commit)
3839
$excludes += 'Decompress'
3940
}
4041

0 commit comments

Comments
 (0)