ci(windows): test using GitHub Actions

This commit is contained in:
Imran Iqbal 2020-08-08 16:37:44 +01:00
parent 49fc85dfed
commit e7bbefa9f3
No known key found for this signature in database
GPG key ID: 6D8629439D2B7819
3 changed files with 48 additions and 3 deletions

View file

@ -64,14 +64,14 @@ packages:
chocolatey: chocolatey:
wanted: wanted:
firefox: Firefox:
install_args: "l=fr-FR" package_args: "/l:en-GB"
packagename: packagename:
version: '12.04' version: '12.04'
source: 'mychocolatey/source' source: 'mychocolatey/source'
force: true force: true
unwanted: unwanted:
- googlechrome - GoogleChrome
snaps: snaps:
wanted: wanted:

View 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

View 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