Saltstack Official Salt Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

kitchen.windows.yml 3.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. name: 'Kitchen (Windows)'
  5. 'on': ['push', 'pull_request']
  6. env:
  7. machine_user: kitchen
  8. machine_pass: Pass@word1
  9. machine_port: 5985
  10. KITCHEN_LOCAL_YAML: 'kitchen.windows.yml'
  11. jobs:
  12. test-2019:
  13. runs-on: 'windows-2019'
  14. strategy:
  15. fail-fast: false
  16. matrix:
  17. instance:
  18. - default-windows-2019-latest-py3
  19. steps:
  20. - name: 'Check out code'
  21. uses: 'actions/checkout@v2'
  22. - name: 'Install Chef'
  23. uses: 'actionshub/chef-install@1.1.0'
  24. with:
  25. project: 'chef'
  26. version: '16.10.8'
  27. - name: 'Add Chef bindir to PATH'
  28. uses: 'myci-actions/export-env-var-powershell@1'
  29. with:
  30. name: 'PATH'
  31. value: "C:\\opscode\\chef\\bin;\
  32. C:\\opscode\\chef\\embedded\\bin;$env:PATH"
  33. - name: 'Set up Bundler cache'
  34. uses: 'actions/cache@v1'
  35. with:
  36. path: 'vendor/bundle'
  37. key: "${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}"
  38. restore-keys: "${{ runner.os }}-gems-"
  39. - name: 'Set up test user'
  40. run: |
  41. $password = ConvertTo-SecureString $env:machine_pass -AsPlainText -Force
  42. New-LocalUser $env:machine_user -Password $password
  43. Add-LocalGroupMember -Group "Administrators" -Member $env:machine_user
  44. - name: 'Set up WinRM'
  45. run: |
  46. Set-WSManQuickConfig -Force
  47. - name: 'Run Bundler'
  48. run: |
  49. ruby --version
  50. bundle config path vendor/bundle
  51. bundle install --jobs 4 --retry 3
  52. - name: 'Run Test Kitchen'
  53. run: 'bundle exec kitchen verify ${{ matrix.instance }}'
  54. test-2016:
  55. runs-on: 'windows-2016'
  56. strategy:
  57. fail-fast: false
  58. matrix:
  59. instance:
  60. - default-windows-2016-latest-py3
  61. steps:
  62. - name: 'Check out code'
  63. uses: 'actions/checkout@v2'
  64. - name: 'Install Chef'
  65. uses: 'actionshub/chef-install@1.1.0'
  66. with:
  67. project: 'chef'
  68. version: '16.10.8'
  69. - name: 'Add Chef bindir to PATH'
  70. uses: 'myci-actions/export-env-var-powershell@1'
  71. with:
  72. name: 'PATH'
  73. value: "C:\\opscode\\chef\\bin;\
  74. C:\\opscode\\chef\\embedded\\bin;$env:PATH"
  75. - name: 'Set up Bundler cache'
  76. uses: 'actions/cache@v1'
  77. with:
  78. path: 'vendor/bundle'
  79. key: "${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}"
  80. restore-keys: "${{ runner.os }}-gems-"
  81. - name: 'Set up test user'
  82. run: |
  83. $password = ConvertTo-SecureString $env:machine_pass -AsPlainText -Force
  84. New-LocalUser $env:machine_user -Password $password
  85. Add-LocalGroupMember -Group "Administrators" -Member $env:machine_user
  86. - name: 'Set up WinRM'
  87. run: |
  88. Set-WSManQuickConfig -Force
  89. - name: 'Run Bundler'
  90. run: |
  91. ruby --version
  92. bundle config path vendor/bundle
  93. bundle install --jobs 4 --retry 3
  94. - name: 'Run Test Kitchen'
  95. run: 'bundle exec kitchen verify ${{ matrix.instance }}'