summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremiah Snapp <jeremiah.snapp@gmail.com>2022-04-08 10:57:52 -0400
committerGitHub <noreply@github.com>2022-04-08 10:57:52 -0400
commit54714b39a013cf7f784a463a530f50adee6414d4 (patch)
treecb0f5b544e510170ca6f7549eebf76805097f30c
parentb766530aeb5a8f7eca4cb43d3c51913f08e743b6 (diff)
parent7c000273259a70fbbbfe534fc9bb1d5c6b122b15 (diff)
downloadwmi-lite-main.tar.gz
Merge pull request #16 from chef/poorndm/IPACK-117-Test-Ruby-3.1HEADmain
Test Ruby 3.0/3.1
-rw-r--r--.expeditor/run_windows_tests.ps116
-rw-r--r--.expeditor/verify.pipeline.yml41
-rw-r--r--.github/CODEOWNERS4
3 files changed, 47 insertions, 14 deletions
diff --git a/.expeditor/run_windows_tests.ps1 b/.expeditor/run_windows_tests.ps1
new file mode 100644
index 0000000..c37728b
--- /dev/null
+++ b/.expeditor/run_windows_tests.ps1
@@ -0,0 +1,16 @@
+# Stop script execution when a non-terminating error occurs
+$ErrorActionPreference = "Stop"
+# This will run ruby test on windows platform
+
+Write-Output "--- Bundle install"
+
+bundle config --local path vendor/bundle
+If ($lastexitcode -ne 0) { Exit $lastexitcode }
+
+bundle install --jobs=7 --retry=3
+If ($lastexitcode -ne 0) { Exit $lastexitcode }
+
+Write-Output "--- Bundle Execute"
+
+bundle exec rake
+If ($lastexitcode -ne 0) { Exit $lastexitcode }
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml
index 580c5fb..8f95135 100644
--- a/.expeditor/verify.pipeline.yml
+++ b/.expeditor/verify.pipeline.yml
@@ -15,7 +15,7 @@ steps:
expeditor:
executor:
docker:
- image: ruby:2.5-buster
+ image: ruby:2.5
- label: run-specs-ruby-2.6
command:
@@ -23,7 +23,7 @@ steps:
expeditor:
executor:
docker:
- image: ruby:2.6-buster
+ image: ruby:2.6
- label: run-specs-ruby-2.7
command:
@@ -31,25 +31,42 @@ steps:
expeditor:
executor:
docker:
- image: ruby:2.7-buster
+ image: ruby:2.7
-- label: run-specs-windows
+- label: run-specs-ruby-3.0
command:
- - bundle config set --local without docs debug
- - bundle install --jobs=7 --retry=3
- - bundle exec rake spec
+ - .expeditor/run_linux_tests.sh rake
expeditor:
executor:
docker:
- host_os: windows
+ image: ruby:3.0
+
+- label: run-specs-ruby-3.1
+ command:
+ - .expeditor/run_linux_tests.sh rake
+ expeditor:
+ executor:
+ docker:
+ image: ruby:3.1
-- label: "Unit and Functional Testing Windows :ruby: 3.0"
+- label: run-specs-ruby-3.0-windows
command:
- - bundle config set --local without docs debug
- - bundle install --jobs=7 --retry=3
- - bundle exec rake spec
+ - .expeditor/run_windows_tests.ps1
expeditor:
executor:
docker:
host_os: windows
+ shell: ["powershell", "-Command"]
image: rubydistros/windows-2019:3.0
+ user: 'NT AUTHORITY\SYSTEM'
+
+- label: run-specs-ruby-3.1-windows
+ command:
+ - .expeditor/run_windows_tests.ps1
+ expeditor:
+ executor:
+ docker:
+ host_os: windows
+ shell: ["powershell", "-Command"]
+ image: rubydistros/windows-2019:3.1
+ user: 'NT AUTHORITY\SYSTEM'
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index b82929a..6832f2b 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -1,5 +1,5 @@
# Order is important. The last matching pattern has the most precedence.
-* @chef/msys-developers
-.expeditor/ @chef/jex-team
+* @chef/msys-developers @chef/chef-infra-reviewers @chef/chef-infra-approvers @chef/chef-infra-owners
+.expeditor/ @chef/infra-packages
*.md @chef/docs-team