-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
1 parent
10b79bd
commit 418842d
Showing
9 changed files
with
137 additions
and
100 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,75 @@ | ||
name: CI | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
setup_matrix: | ||
name: 'Setup Test Matrix' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
beaker_setfiles: ${{ steps.get-outputs.outputs.beaker_setfiles }} | ||
puppet_major_versions: ${{ steps.get-outputs.outputs.puppet_major_versions }} | ||
puppet_unit_test_matrix: ${{ steps.get-outputs.outputs.puppet_unit_test_matrix }} | ||
env: | ||
BUNDLE_WITHOUT: development:test:release | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.7' | ||
bundler-cache: true | ||
- name: Run rake validate | ||
run: bundle exec rake validate | ||
- name: Setup Test Matrix | ||
id: get-outputs | ||
run: bundle exec metadata2gha --use-fqdn --pidfile-workaround false | ||
|
||
unit: | ||
needs: setup_matrix | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: ${{fromJson(needs.setup_matrix.outputs.puppet_unit_test_matrix)}} | ||
env: | ||
BUNDLE_WITHOUT: development:system_tests:release | ||
PUPPET_VERSION: "~> ${{ matrix.puppet }}.0" | ||
name: Puppet ${{ matrix.puppet }} (Ruby ${{ matrix.ruby }}) | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Run tests | ||
run: bundle exec rake | ||
|
||
acceptance: | ||
needs: setup_matrix | ||
runs-on: ubuntu-latest | ||
env: | ||
BUNDLE_WITHOUT: development:test:release | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
setfile: ${{fromJson(needs.setup_matrix.outputs.beaker_setfiles)}} | ||
puppet: ${{fromJson(needs.setup_matrix.outputs.puppet_major_versions)}} | ||
name: ${{ matrix.puppet.name }} - ${{ matrix.setfile.name }} | ||
steps: | ||
- name: Enable IPv6 on docker | ||
run: | | ||
echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json | ||
sudo service docker restart | ||
- uses: actions/checkout@v2 | ||
- name: Setup ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.7' | ||
bundler-cache: true | ||
- name: Run tests | ||
run: bundle exec rake beaker | ||
env: | ||
BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet.collection }} | ||
BEAKER_setfile: ${{ matrix.setfile.value }} |
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,29 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
env: | ||
BUNDLE_WITHOUT: development:test:system_tests | ||
|
||
jobs: | ||
deploy: | ||
name: 'deploy to forge' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.7' | ||
bundler-cache: true | ||
- name: Build and Deploy | ||
env: | ||
# Configure secrets here: | ||
# https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets | ||
BLACKSMITH_FORGE_USERNAME: '${{ secrets.PUPPET_FORGE_USERNAME }}' | ||
BLACKSMITH_FORGE_API_KEY: '${{ secrets.PUPPET_FORGE_API_KEY }}' | ||
run: bundle exec rake module:push |
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,2 +1,2 @@ | ||
--- | ||
modulesync_config_version: '3.1.0' | ||
modulesync_config_version: '4.0.0' |
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,34 @@ | ||
docs/ | ||
pkg/ | ||
Gemfile | ||
Gemfile.lock | ||
Gemfile.local | ||
vendor/ | ||
.vendor/ | ||
spec/fixtures/manifests/ | ||
spec/fixtures/modules/ | ||
spec/ | ||
Rakefile | ||
.vagrant/ | ||
.bundle/ | ||
.ruby-version | ||
coverage/ | ||
log/ | ||
.idea/ | ||
.dependencies/ | ||
.github/ | ||
.librarian/ | ||
Puppetfile.lock | ||
*.iml | ||
.editorconfig | ||
.fixtures.yml | ||
.gitignore | ||
.msync.yml | ||
.overcommit.yml | ||
.pmtignore | ||
.rspec | ||
.rspec_parallel | ||
.rubocop.yml | ||
.sync.yml | ||
.*.sw? | ||
.yardoc/ | ||
.yardopts | ||
Dockerfile |
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,32 +1,10 @@ | ||
--- | ||
.travis.yml: | ||
secure: "S+FbvY0fDhzg5uPJZm/mkJCGTUuA2ps2Yay9pPrkjTuCqYcbhjm/NOhXPRWJDONo/3Zo7vQZey9PKcsdK3hznwlfkvB1Ghb/829655lZ2lwHZCoZfGURV/FB+ztjyVT2B/xOwisjz8OGQ8AECOX7l6SjUHzLZWZxpSUWYKTLOAyD+b08jR9eiQBshxjmhxzXl+shHXXRVnGo9TEjPMLXqKpwirNucKjHYdWcYcD+Z1Yfacu3O6Ry4PqCZ0VfRf+ahIbUcnriEke1IF6NU0VquyyaSw1nYrTAUW3bHeRTyAU3Uruh2O+lXRkt8UuxDhFs17JLbrb+0a8odr0mg6kdVowEuPYJSCMEUciyoi6ztHJiVceXK2rge5Yi0jw120wRK/cWxDImc8hUh9atGgE5VzMIzu3DJOcpslVSc+iffCPg3/EVol/Ekg9WVb4s1Vj7XFwjczXVaG7mJVF5HSg0JrP+xz1rTvVLvNaNVtZDvEYphscBBUt8ujqqmz4oICWSNa7wo1JLEd1qBwPk+tgmGr1EB3wvcU12KjKotswSjkG2uqNwKO7b9ETUMOzaIxo5dLOr5pUrV9LCDIBAzkeD8HqX6pNHJE1qhZJxLUWOVaDrQNBbJp6yY5xmkg5oNwykPAGKJXAuzTYlBjYBs7ss9RO/Wpn73ExnHEI9DX43rfo=" | ||
spec/spec_helper.rb: | ||
mock_with: ':mocha' | ||
spec/acceptance/nodesets/ec2/amazonlinux-2016091.yml: | ||
delete: true | ||
spec/acceptance/nodesets/ec2/image_templates.yaml: | ||
delete: true | ||
spec/acceptance/nodesets/ec2/rhel-73-x64.yml: | ||
delete: true | ||
spec/acceptance/nodesets/ec2/sles-12sp2-x64.yml: | ||
delete: true | ||
spec/acceptance/nodesets/ec2/ubuntu-1604-x64.yml: | ||
delete: true | ||
spec/acceptance/nodesets/ec2/windows-2016-base-x64.yml: | ||
delete: true | ||
spec/acceptance/nodesets/archlinux-2-x64.yml: | ||
delete: true | ||
|
||
Gemfile: | ||
optional: | ||
':test': | ||
- gem: 'mocha' | ||
version: '~> 1.10.0' | ||
':system_tests': | ||
- gem: 'simp-beaker-helpers' | ||
|
||
.rubocop.yml: | ||
default_configs: | ||
Style/SymbolArray: | ||
Enabled: false |
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
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