Skip to content

Commit

Permalink
Moving puppet-lint to GitHub CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianSipos committed Feb 6, 2024
1 parent 25e02a1 commit 5ac1f53
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/puppet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Puppet module
on:
push:
paths:
- .github/workflows/puppet.yaml
- puppet

jobs:
puppet-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: false
- name: puppet-lint
uses: scottbrenner/puppet-lint-action@master
with:
args: puppet/
18 changes: 1 addition & 17 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ stages:
.prep-install-python: &prep-install-python |
dnf install -y python3 python3-pip python3-wheel
dnf clean all && rm -rf /var/cache/yum
pip3 install --upgrade pip pip-tools && ln -s pip3 /usr/bin/pip
pip3 install --upgrade pip pip-tools

.prep-install-docker: &prep-install-docker |
dnf remove -y docker \
Expand Down Expand Up @@ -277,22 +277,6 @@ transcoder_unit-test:
coverage_format: cobertura
path: transcoder/coverage.xml

puppet-lint:
stage: test
needs: []
allow_failure: true
rules:
- if: $TRY_LATEST_PROMOTE != "true"
changes:
- ".gitlab-ci.yml"
- puppet/**/*
before_script:
- *prep-install-ca
- dnf module install -y ruby:2.7
- gem install puppet-lint
script:
- puppet-lint puppet

# Pull in the latest commits from default submodule branches
promote:
stage: build
Expand Down

0 comments on commit 5ac1f53

Please sign in to comment.