mirror of
https://github.com/saltstack-formulas/packages-formula.git
synced 2025-04-17 10:10:27 +00:00
ci(windows): test using GitHub Actions
This commit is contained in:
parent
49fc85dfed
commit
e7bbefa9f3
3 changed files with 48 additions and 3 deletions
|
@ -64,14 +64,14 @@ packages:
|
|||
|
||||
chocolatey:
|
||||
wanted:
|
||||
firefox:
|
||||
install_args: "l=fr-FR"
|
||||
Firefox:
|
||||
package_args: "/l:en-GB"
|
||||
packagename:
|
||||
version: '12.04'
|
||||
source: 'mychocolatey/source'
|
||||
force: true
|
||||
unwanted:
|
||||
- googlechrome
|
||||
- GoogleChrome
|
||||
|
||||
snaps:
|
||||
wanted:
|
||||
|
|
26
test/integration/windows/controls/pkgs_spec.rb
Normal file
26
test/integration/windows/controls/pkgs_spec.rb
Normal file
|
@ -0,0 +1,26 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
pkgs_wanted = %w[Firefox jq notepadplusplus]
|
||||
pkgs_unwanted = %w[GoogleChrome hg]
|
||||
|
||||
### WANTED
|
||||
control 'Wanted packages' do
|
||||
title 'should be installed'
|
||||
|
||||
pkgs_wanted.each do |p|
|
||||
describe chocolatey_package(p) do
|
||||
it { should be_installed }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
### UNWANTED
|
||||
control 'Unwanted packages' do
|
||||
title 'should be uninstalled'
|
||||
|
||||
pkgs_unwanted.each do |p|
|
||||
describe chocolatey_package(p) do
|
||||
it { should_not be_installed }
|
||||
end
|
||||
end
|
||||
end
|
19
test/salt/pillar/windows.sls
Normal file
19
test/salt/pillar/windows.sls
Normal file
|
@ -0,0 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
packages:
|
||||
chocolatey:
|
||||
required:
|
||||
pkgs: []
|
||||
wanted:
|
||||
Firefox:
|
||||
package_args: "/l:en-GB"
|
||||
jq:
|
||||
version: '1.5'
|
||||
# `1.6` already installed on the pre-salted image
|
||||
force: true
|
||||
notepadplusplus:
|
||||
version: '7.8.8'
|
||||
unwanted:
|
||||
- GoogleChrome
|
||||
- hg
|
Loading…
Add table
Reference in a new issue