-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(windows): test using GitHub Actions
- Loading branch information
Showing
3 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |