Saltstack Official Salt Formula
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

kitchen.windows.yml 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. - v3002-py3-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. Set-WSManInstance -ResourceURI winrm/config/service
  48. -ValueSet @{AllowUnencrypted="true"}
  49. - name: 'Run Bundler'
  50. run: |
  51. ruby --version
  52. bundle config path vendor/bundle
  53. bundle install --jobs 4 --retry 3
  54. - name: 'Run Test Kitchen'
  55. run: 'bundle exec kitchen verify ${{ matrix.instance }}'
  56. test-2016:
  57. runs-on: 'windows-2016'
  58. strategy:
  59. fail-fast: false
  60. matrix:
  61. instance:
  62. - v3002-py3-windows-2016-latest-py3
  63. steps:
  64. - name: 'Check out code'
  65. uses: 'actions/checkout@v2'
  66. - name: 'Install Chef'
  67. uses: 'actionshub/chef-install@1.1.0'
  68. with:
  69. project: 'chef'
  70. version: '16.10.8'
  71. - name: 'Add Chef bindir to PATH'
  72. uses: 'myci-actions/export-env-var-powershell@1'
  73. with:
  74. name: 'PATH'
  75. value: "C:\\opscode\\chef\\bin;\
  76. C:\\opscode\\chef\\embedded\\bin;$env:PATH"
  77. - name: 'Set up Bundler cache'
  78. uses: 'actions/cache@v1'
  79. with:
  80. path: 'vendor/bundle'
  81. key: "${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}"
  82. restore-keys: "${{ runner.os }}-gems-"
  83. - name: 'Set up test user'
  84. run: |
  85. $password = ConvertTo-SecureString $env:machine_pass -AsPlainText -Force
  86. New-LocalUser $env:machine_user -Password $password
  87. Add-LocalGroupMember -Group "Administrators" -Member $env:machine_user
  88. - name: 'Set up WinRM'
  89. run: >
  90. Set-WSManQuickConfig -Force;
  91. Set-WSManInstance -ResourceURI winrm/config/service
  92. -ValueSet @{AllowUnencrypted="true"}
  93. - name: 'Run Bundler'
  94. run: |
  95. ruby --version
  96. bundle config path vendor/bundle
  97. bundle install --jobs 4 --retry 3
  98. - name: 'Run Test Kitchen'
  99. run: 'bundle exec kitchen verify ${{ matrix.instance }}'