Skip to content

Commit

Permalink
Adds a puppetfile workflow that uses ra10ke
Browse files Browse the repository at this point in the history
  • Loading branch information
logicminds committed Apr 22, 2022
1 parent 238b8d0 commit dc11f4d
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/puppetfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Puppetfile checks

on:
workflow_call:
inputs:
container_image:
description: Image to use when running tests
default: 'puppet/puppet-dev-tools:2022-04-21-e44b72b'
required: false
type: string
jobs:
r10k_validate:
runs-on: ubuntu-latest
container: ${{ inputs.container_image }}
steps:
- uses: actions/checkout@v2
- name: validate Puppetfile
run: rake -f /Rakefile r10k:validate
r10k_check_dups:
runs-on: ubuntu-latest
container: ${{ inputs.container_image }}
steps:
- uses: actions/checkout@v2
- name: Check for puppetfile duplicates
run: rake -f /Rakefile r10k:duplicates
r10k_syntax:
runs-on: ubuntu-latest
container: ${{ inputs.container_image }}
steps:
- uses: actions/checkout@v2
- name: Check for puppetfile syntax correctness
run: rake -f /Rakefile r10k:syntax
r10k_deprecation:
runs-on: ubuntu-latest
container: ${{ inputs.container_image }}
steps:
- uses: actions/checkout@v2
- name: Check for puppetfile module deprecations
run: rake -f /Rakefile r10k:deprecation
r10k_find_outdated:
runs-on: ubuntu-latest
container: ${{ inputs.container_image }}
steps:
- uses: actions/checkout@v2
- name: Check for outdated modules
run: rake -f /Rakefile r10k:dependencies
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,26 @@ jobs:
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v1
working-directory: ./site/profiles
```

## Puppetfile checks
You can use the puppetfile workflow to check various POI on your puppetfile. To use this workflow do the following

```yaml
# This is a basic workflow to help you get started with Actions
name: Puppetfile checks
# Controls when the workflow will run
on:
push:
workflow_dispatch:
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
puppetfile:
name: puppetfile
uses: voxpupuli/gha-puppet/.github/workflows//puppetfile.yml@master
```

0 comments on commit dc11f4d

Please sign in to comment.