-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
654 additions
and
178 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
kitchen: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ "default-debian-11", "default-debian-12", "default-ubuntu-2204" ] | ||
recipe: [ "binary", "source" ] | ||
variant: [ "core" ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.1 | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- name: Run Test Kitchen platform ${{ matrix.platform }} | ||
run: env KITCHEN_RECIPE=${{ matrix.recipe }} KITCHEN_VARIANT=${{ matrix.variant }} bundle exec rake kitchen:${{ matrix.platform }} | ||
style: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.1 | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- name: Run style checks | ||
run: bundle exec rake style:ruby |
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 |
---|---|---|
@@ -1,21 +1,39 @@ | ||
--- | ||
driver: | ||
name: docker | ||
name: dokken | ||
privileged: true # allows systemd services to start | ||
chef_image: cincproject/cinc | ||
chef_version: <%= ENV.fetch('CHEF_VERSION', 18) %> | ||
|
||
provisioner: | ||
name: chef_zero | ||
product_name: chef | ||
product_version: <%= ENV["CHEF_VERSION"] || '14' %> | ||
name: dokken | ||
product_name: cinc | ||
chef_binary: /opt/cinc/bin/cinc-client | ||
deprecations_as_errors: true | ||
multiple_converge: 2 | ||
|
||
transport: | ||
name: dokken | ||
|
||
verifier: | ||
name: inspec | ||
|
||
platforms: | ||
- name: <%= ENV["KITCHEN_PLATFORM"] %> | ||
driver_config: | ||
use_sudo: false | ||
# @see https://github.com/chef-cookbooks/testing_examples/blob/main/kitchen.dokken.yml | ||
# @see https://hub.docker.com/u/dokken | ||
- name: debian-12 | ||
driver: | ||
image: dokken/debian-12 | ||
pid_one_command: /bin/systemd | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update | ||
- RUN /usr/bin/apt-get upgrade -y | ||
- RUN /usr/bin/apt-get purge exim4* -y | ||
|
||
suites: | ||
- name: default | ||
run_list: | ||
- recipe[bitcoin::<%= ENV["KITCHEN_RECIPE"] %>] | ||
- recipe[bitcoin::<%= ENV.fetch('KITCHEN_RECIPE', 'binary') %>] | ||
attributes: | ||
bitcoin: | ||
variant: <%= ENV["KITCHEN_VARIANT"] %> | ||
variant: <%= ENV.fetch('KITCHEN_VARIANT', 'core') %> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,17 +1,11 @@ | ||
source 'https://rubygems.org' | ||
|
||
group :development do | ||
gem 'berkshelf' | ||
gem 'chef', '~> 14' | ||
gem 'rake' | ||
end | ||
|
||
group :style do | ||
gem 'cookstyle' | ||
gem 'foodcritic' | ||
end | ||
gem 'rake' | ||
|
||
group :test do | ||
gem 'kitchen-docker' | ||
gem 'berkshelf' # needed by test-kitchen | ||
gem 'cookstyle' | ||
gem 'kitchen-dokken' | ||
gem 'kitchen-inspec' | ||
gem 'test-kitchen' | ||
end |
Oops, something went wrong.