mirror of
https://github.com/voxpupuli/puppet-hashi_stack.git
synced 2025-05-28 22:35:35 +01:00
modulesync 4.0.0-10-g1c946c3
This commit is contained in:
parent
264d4ab24b
commit
0da811dfc6
19 changed files with 682 additions and 0 deletions
47
.github/workflows/ci.yml
vendored
Normal file
47
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
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
|
29
.github/workflows/release.yml
vendored
Normal file
29
.github/workflows/release.yml
vendored
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue