Create puppet-lint.yaml #1
Workflow file for this run
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
name: puppet linting | |
on: | |
pull_request: | |
branches: | |
- master | |
- main | |
- production | |
paths-ignore: | |
- "**.md" | |
jobs: | |
build: | |
runs-on: ubuntu-latest # This uses an Ubuntu runner to execute Docker | |
container: | |
image: quay.io/dhtech/puppet-ci:latest # Use the specified Docker image from Quay.io | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Puppet lint | |
run: | | |
/root/.rbenv/shims/puppet-lint --no-puppet_url_without_modules-check --fail-on-warnings . | |
- name: ERB lint | |
run: | | |
/root/.rbenv/shims/rails-erb-lint check |