mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2025-08-03 16:53:53 +02:00
ci(workflows): update kitchen.windows.yml
This commit is contained in:
parent
8b2d18255d
commit
223203857d
53
.github/workflows/kitchen.windows.yml
vendored
53
.github/workflows/kitchen.windows.yml
vendored
@ -17,27 +17,15 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
instance:
|
||||
- default-windows-2022-latest-py3
|
||||
- default-windows-2022-latest
|
||||
steps:
|
||||
- name: 'Check out code'
|
||||
uses: 'actions/checkout@v2'
|
||||
- name: 'Install Chef'
|
||||
uses: 'actionshub/chef-install@1.1.0'
|
||||
uses: 'actions/checkout@v4'
|
||||
- name: 'Set up Ruby'
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
project: 'chef'
|
||||
version: '16.10.8'
|
||||
- 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-"
|
||||
ruby-version: '3.1.6'
|
||||
bundler-cache: true
|
||||
- name: 'Set up test user'
|
||||
run: |
|
||||
$password = ConvertTo-SecureString $env:machine_pass -AsPlainText -Force
|
||||
@ -59,27 +47,15 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
instance:
|
||||
- default-windows-2019-latest-py3
|
||||
- default-windows-2019-latest
|
||||
steps:
|
||||
- name: 'Check out code'
|
||||
uses: 'actions/checkout@v2'
|
||||
- name: 'Install Chef'
|
||||
uses: 'actionshub/chef-install@1.1.0'
|
||||
uses: 'actions/checkout@v4'
|
||||
- name: 'Set up Ruby'
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
project: 'chef'
|
||||
version: '16.10.8'
|
||||
- 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-"
|
||||
ruby-version: '3.1.6'
|
||||
bundler-cache: true
|
||||
- name: 'Set up test user'
|
||||
run: |
|
||||
$password = ConvertTo-SecureString $env:machine_pass -AsPlainText -Force
|
||||
@ -88,10 +64,5 @@ jobs:
|
||||
- name: 'Set up WinRM'
|
||||
run: |
|
||||
Set-WSManQuickConfig -Force
|
||||
- name: 'Run Bundler'
|
||||
run: |
|
||||
ruby --version
|
||||
bundle config path vendor/bundle
|
||||
bundle install --jobs 4 --retry 3
|
||||
- name: 'Run Test Kitchen'
|
||||
run: 'bundle exec kitchen verify ${{ matrix.instance }}'
|
||||
|
@ -11,21 +11,15 @@ driver:
|
||||
|
||||
provisioner:
|
||||
salt_install: bootstrap
|
||||
salt_bootstrap_options: -pythonVersion 3 -version 3004.1-1
|
||||
# yamllint disable rule:line-length
|
||||
salt_bootstrap_url: "https://github.com/saltstack/salt-bootstrap\
|
||||
/releases/latest/download/bootstrap-salt.ps1"
|
||||
salt_call_command: C:\Program Files\Salt Project\Salt\salt-call
|
||||
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 `
|
||||
source=https://github.com/saltstack/salt-winrepo-ng/raw/master/salt-minion.sls `
|
||||
skip_verify=True makedirs=True
|
||||
# yamllint enable rule:line-length
|
||||
skip_verify=True makedirs=True'
|
||||
|
||||
platforms:
|
||||
- name: windows-2022-latest-py3
|
||||
verifier:
|
||||
inputs:
|
||||
saltmajorversion: 3004
|
||||
- name: windows-2019-latest-py3
|
||||
verifier:
|
||||
inputs:
|
||||
saltmajorversion: 3004
|
||||
- name: windows-2022-latest
|
||||
- name: windows-2019-latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user