summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJohn McCrae <jmccrae@chf.io>2022-05-09 19:22:57 +0600
committerJohn McCrae <jmccrae@chf.io>2022-05-24 08:31:24 +0600
commit70bfdf25cf7862ddb6aa53d17311ea3fe3fabd9c (patch)
tree742508725536cc209ce7f6b2f2905e3826bceb58 /.github
parentd04de476b9d58c2496adb09459573b93f0db537a (diff)
downloadchef-70bfdf25cf7862ddb6aa53d17311ea3fe3fabd9c.tar.gz
Updated windows_certificate resource to account for bugs and updates in the win32-certstore gem
Signed-off-by: John McCrae <jmccrae@chf.io>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/kitchen.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/kitchen.yml b/.github/workflows/kitchen.yml
index c66a5204ff..126c7a5e57 100644
--- a/.github/workflows/kitchen.yml
+++ b/.github/workflows/kitchen.yml
@@ -30,6 +30,14 @@ jobs:
run: |
$env:PATH = "C:\opscode\chef\bin;C:\opscode\chef\embedded\bin;" + $env:PATH
$env:OHAI_VERSION = ( Select-String -Path .\Gemfile.lock -Pattern '(?<=ohai \()\d.*(?=\))' | ForEach-Object { $_.Matches[0].Value } )
+
+ # The chef-client installer does not put the file 'ansidecl.h' down in the correct location
+ # This leads to failures during testing. Moving that file to its correct position here.
+ # Another example of 'bad' that needs to be corrected
+ $output = gci -path C:\opscode\ -file ansidecl.h -Recurse
+ $target_path = $($output.Directory.Parent.FullName + "\x86_64-w64-mingw32\include")
+ Move-Item -Path $output.FullName -Destination $target_path
+
gem install appbundler appbundle-updater --no-doc
If ($lastexitcode -ne 0) { Exit $lastexitcode }
appbundle-updater chef chef $env:GITHUB_SHA --tarball --github $env:GITHUB_REPOSITORY
@@ -51,12 +59,6 @@ jobs:
Remove-Item -Path C:\opscode\chef\embedded\bin\htmldiff
Remove-Item -Path C:\opscode\chef\embedded\bin\ldiff
}
- # The chef-client installer does not put the file 'ansidecl.h' down in the correct location
- # This leads to failures during testing. Moving that file to its correct position here.
- # Another example of 'bad' that needs to be corrected
- $output = gci -path C:\opscode\ -file ansidecl.h -Recurse
- $target_path = $($output.Directory.Parent.FullName + "\x86_64-w64-mingw32\include")
- Move-Item -Path $output.FullName -Destination $target_path
bundle install --jobs=3 --retry=3
# If ($lastexitcode -ne 0) { Exit $lastexitcode }