mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2026-07-23 08:00:56 +02:00
ci(workflows): update kitchen.windows.yml
This commit is contained in:
@@ -17,27 +17,15 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
instance:
|
instance:
|
||||||
- default-windows-2022-latest-py3
|
- default-windows-2022-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 'Check out code'
|
- name: 'Check out code'
|
||||||
uses: 'actions/checkout@v2'
|
uses: 'actions/checkout@v4'
|
||||||
- name: 'Install Chef'
|
- name: 'Set up Ruby'
|
||||||
uses: 'actionshub/chef-install@1.1.0'
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
project: 'chef'
|
ruby-version: '3.1.6'
|
||||||
version: '16.10.8'
|
bundler-cache: true
|
||||||
- name: 'Add Chef bindir to PATH'
|
|
||||||
uses: 'myci-actions/export-env-var-powershell@1'
|
|
||||||
with:
|
|
||||||
name: 'PATH'
|
|
||||||
value: "C:\\opscode\\chef\\bin;\
|
|
||||||
C:\\opscode\\chef\\embedded\\bin;$env:PATH"
|
|
||||||
- name: 'Set up Bundler cache'
|
|
||||||
uses: 'actions/cache@v1'
|
|
||||||
with:
|
|
||||||
path: 'vendor/bundle'
|
|
||||||
key: "${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}"
|
|
||||||
restore-keys: "${{ runner.os }}-gems-"
|
|
||||||
- name: 'Set up test user'
|
- name: 'Set up test user'
|
||||||
run: |
|
run: |
|
||||||
$password = ConvertTo-SecureString $env:machine_pass -AsPlainText -Force
|
$password = ConvertTo-SecureString $env:machine_pass -AsPlainText -Force
|
||||||
@@ -59,27 +47,15 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
instance:
|
instance:
|
||||||
- default-windows-2019-latest-py3
|
- default-windows-2019-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 'Check out code'
|
- name: 'Check out code'
|
||||||
uses: 'actions/checkout@v2'
|
uses: 'actions/checkout@v4'
|
||||||
- name: 'Install Chef'
|
- name: 'Set up Ruby'
|
||||||
uses: 'actionshub/chef-install@1.1.0'
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
project: 'chef'
|
ruby-version: '3.1.6'
|
||||||
version: '16.10.8'
|
bundler-cache: true
|
||||||
- name: 'Add Chef bindir to PATH'
|
|
||||||
uses: 'myci-actions/export-env-var-powershell@1'
|
|
||||||
with:
|
|
||||||
name: 'PATH'
|
|
||||||
value: "C:\\opscode\\chef\\bin;\
|
|
||||||
C:\\opscode\\chef\\embedded\\bin;$env:PATH"
|
|
||||||
- name: 'Set up Bundler cache'
|
|
||||||
uses: 'actions/cache@v1'
|
|
||||||
with:
|
|
||||||
path: 'vendor/bundle'
|
|
||||||
key: "${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}"
|
|
||||||
restore-keys: "${{ runner.os }}-gems-"
|
|
||||||
- name: 'Set up test user'
|
- name: 'Set up test user'
|
||||||
run: |
|
run: |
|
||||||
$password = ConvertTo-SecureString $env:machine_pass -AsPlainText -Force
|
$password = ConvertTo-SecureString $env:machine_pass -AsPlainText -Force
|
||||||
@@ -88,10 +64,5 @@ jobs:
|
|||||||
- name: 'Set up WinRM'
|
- name: 'Set up WinRM'
|
||||||
run: |
|
run: |
|
||||||
Set-WSManQuickConfig -Force
|
Set-WSManQuickConfig -Force
|
||||||
- name: 'Run Bundler'
|
|
||||||
run: |
|
|
||||||
ruby --version
|
|
||||||
bundle config path vendor/bundle
|
|
||||||
bundle install --jobs 4 --retry 3
|
|
||||||
- name: 'Run Test Kitchen'
|
- name: 'Run Test Kitchen'
|
||||||
run: 'bundle exec kitchen verify ${{ matrix.instance }}'
|
run: 'bundle exec kitchen verify ${{ matrix.instance }}'
|
||||||
|
|||||||
+7
-13
@@ -11,21 +11,15 @@ driver:
|
|||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
salt_install: bootstrap
|
salt_install: bootstrap
|
||||||
salt_bootstrap_options: -pythonVersion 3 -version 3004.1-1
|
salt_bootstrap_url: "https://github.com/saltstack/salt-bootstrap\
|
||||||
# yamllint disable rule:line-length
|
/releases/latest/download/bootstrap-salt.ps1"
|
||||||
|
salt_call_command: C:\Program Files\Salt Project\Salt\salt-call
|
||||||
init_environment: |
|
init_environment: |
|
||||||
salt-call --local state.single file.managed `
|
'"C:\Program Files\Salt Project\Salt\salt-call" --local state.single file.managed `
|
||||||
C:\Users\kitchen\AppData\Local\Temp\kitchen\srv\salt\win\repo-ng\salt-minion.sls `
|
C:\Users\kitchen\AppData\Local\Temp\kitchen\srv\salt\win\repo-ng\salt-minion.sls `
|
||||||
source=https://github.com/saltstack/salt-winrepo-ng/raw/master/salt-minion.sls `
|
source=https://github.com/saltstack/salt-winrepo-ng/raw/master/salt-minion.sls `
|
||||||
skip_verify=True makedirs=True
|
skip_verify=True makedirs=True'
|
||||||
# yamllint enable rule:line-length
|
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: windows-2022-latest-py3
|
- name: windows-2022-latest
|
||||||
verifier:
|
- name: windows-2019-latest
|
||||||
inputs:
|
|
||||||
saltmajorversion: 3004
|
|
||||||
- name: windows-2019-latest-py3
|
|
||||||
verifier:
|
|
||||||
inputs:
|
|
||||||
saltmajorversion: 3004
|
|
||||||
|
|||||||
Reference in New Issue
Block a user