-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from voxpupuli/modulesync
modulesync 4.0.0
- Loading branch information
Showing
9 changed files
with
138 additions
and
143 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 CentOS | ||
|
||
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
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