Skip to content

Commit ccd065b

Browse files
committed
ci(windows): test using GitHub Actions
1 parent ac48c46 commit ccd065b

File tree

3 files changed

+48
-3
lines changed

3 files changed

+48
-3
lines changed

pillar.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ packages:
6464

6565
chocolatey:
6666
wanted:
67-
firefox:
68-
install_args: "l=fr-FR"
67+
Firefox:
68+
package_args: "/l:en-GB"
6969
packagename:
7070
version: '12.04'
7171
source: 'mychocolatey/source'
7272
force: true
7373
unwanted:
74-
- googlechrome
74+
- GoogleChrome
7575

7676
snaps:
7777
wanted:
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# frozen_string_literal: true
2+
3+
pkgs_wanted = %w[Firefox jq notepadplusplus]
4+
pkgs_unwanted = %w[GoogleChrome hg]
5+
6+
### WANTED
7+
control 'Wanted packages' do
8+
title 'should be installed'
9+
10+
pkgs_wanted.each do |p|
11+
describe chocolatey_package(p) do
12+
it { should be_installed }
13+
end
14+
end
15+
end
16+
17+
### UNWANTED
18+
control 'Unwanted packages' do
19+
title 'should be uninstalled'
20+
21+
pkgs_unwanted.each do |p|
22+
describe chocolatey_package(p) do
23+
it { should_not be_installed }
24+
end
25+
end
26+
end

test/salt/pillar/windows.sls

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
---
4+
packages:
5+
chocolatey:
6+
required:
7+
pkgs: []
8+
wanted:
9+
Firefox:
10+
package_args: "/l:en-GB"
11+
jq:
12+
version: '1.5'
13+
# `1.6` already installed on the pre-salted image
14+
force: true
15+
notepadplusplus:
16+
version: '7.8.8'
17+
unwanted:
18+
- GoogleChrome
19+
- hg

0 commit comments

Comments
 (0)