forked from rodjek/rspec-puppet
-
Notifications
You must be signed in to change notification settings - Fork 18
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 #43 from puppetlabs/CONT-704-Implement_reusable_wo…
…rkflows (CONT-704) - Implement reusable workflows
- Loading branch information
Showing
12 changed files
with
142 additions
and
49 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,29 @@ | ||
name: "ci" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
spec: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby_version: | ||
- "2.5" | ||
- "2.7" | ||
puppet_gem_version: | ||
- '~> 6.0' | ||
- '~> 7.0' | ||
runs_on: | ||
- "ubuntu-latest" | ||
- "windows-latest" | ||
name: "spec (${{ matrix.runs_on }} ruby ${{ matrix.ruby_version }} | puppet ${{matrix.puppet_gem_version}})" | ||
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main" | ||
secrets: "inherit" | ||
with: | ||
ruby_version: ${{ matrix.ruby_version }} | ||
puppet_gem_version: ${{ matrix.puppet_gem_version }} | ||
runs_on: ${{ matrix.runs_on }} |
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,22 @@ | ||
name: community-labeller | ||
|
||
on: | ||
issues: | ||
types: | ||
- "opened" | ||
pull_request_target: | ||
types: | ||
- "opened" | ||
|
||
jobs: | ||
label: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
|
||
- uses: "puppetlabs/community-labeller@v0" | ||
name: "Label issues or pull requests" | ||
with: | ||
label_name: "community" | ||
label_color: '5319e7' | ||
org_membership: "puppetlabs" | ||
token: ${{ secrets.IAC_COMMUNITY_LABELER }} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: "nightly" | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
spec: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby_version: | ||
- "2.5" | ||
- "2.7" | ||
puppet_gem_version: | ||
- '~> 6.0' | ||
- '~> 7.0' | ||
runs_on: | ||
- "ubuntu-latest" | ||
- "windows-latest" | ||
name: "spec (${{ matrix.runs_on }} ruby ${{ matrix.ruby_version }} | puppet ${{matrix.puppet_gem_version}})" | ||
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main" | ||
secrets: "inherit" | ||
with: | ||
ruby_version: ${{ matrix.ruby_version }} | ||
puppet_gem_version: ${{ matrix.puppet_gem_version }} | ||
runs_on: ${{ matrix.runs_on }} |
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,16 @@ | ||
name: "release" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
target: | ||
description: "The target for the release. This can be a commit sha or a branch." | ||
required: false | ||
default: "main" | ||
|
||
jobs: | ||
release: | ||
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release.yml@main" | ||
with: | ||
target: "${{ github.event.inputs.target }}" | ||
secrets: "inherit" |
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,20 @@ | ||
name: "release prep" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
target: | ||
description: "The target for the release. This can be a commit sha or a branch." | ||
required: false | ||
default: "main" | ||
version: | ||
description: "Version of gem to be released." | ||
required: true | ||
|
||
jobs: | ||
release_prep: | ||
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main" | ||
with: | ||
target: "${{ github.event.inputs.target }}" | ||
version: "${{ github.events.inputs.version }}" | ||
secrets: "inherit" |
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,4 @@ | ||
# Silencing rubocop warnings until https://tickets.puppetlabs.com/browse/CONT-725 | ||
# is completed | ||
AllCops: | ||
DisabledByDefault: true |
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
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,5 @@ | ||
#frozen_string_literal: true | ||
|
||
module RSpecPuppet | ||
VERSION ||= '2.12.0' | ||
end |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
require 'spec_helper' | ||
|
||
describe 'test::registry', :if => Puppet.version.to_f >= 4.0 do | ||
let(:facts) do | ||
{ | ||
:operatingsystem => 'windows', | ||
} | ||
end | ||
|
||
let(:facts) { {:os => { :name => 'windows' } } } | ||
|
||
it { should compile.with_all_deps } | ||
end |