pdksync_heads/main-0-gf3911d3

This commit is contained in:
david22swan
2022-03-16 15:38:40 +00:00
parent d36a0f6f12
commit 369219732b
10 changed files with 84 additions and 50 deletions

34
.devcontainer/README.md Normal file
View File

@@ -0,0 +1,34 @@
# devcontainer
For format details, see https://aka.ms/devcontainer.json.
For config options, see the README at:
https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/puppet
``` json
{
"name": "Puppet Development Kit (Community)",
"dockerFile": "Dockerfile",
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"puppet.puppet-vscode",
"rebornix.Ruby"
]
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pdk --version",
}
```

View File

@@ -1,23 +1,17 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/puppet
{ {
"name": "Puppet Development Kit (Community)", "name": "Puppet Development Kit (Community)",
"dockerFile": "Dockerfile", "dockerFile": "Dockerfile",
// Set *default* container specific settings.json values on container create.
"settings": { "settings": {
"terminal.integrated.shell.linux": "/bin/bash" "terminal.integrated.profiles.linux": {
"bash": {
"path": "bash",
}
}
}, },
// Add the IDs of extensions you want installed when the container is created.
"extensions": [ "extensions": [
"puppet.puppet-vscode", "puppet.puppet-vscode",
"rebornix.Ruby" "rebornix.Ruby"
] ]
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pdk --version",
} }

View File

@@ -14,6 +14,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: "Honeycomb: Start recording" - name: "Honeycomb: Start recording"
uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1 uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
with: with:
@@ -25,7 +26,6 @@ jobs:
run: | run: |
echo STEP_ID="auto-release" >> $GITHUB_ENV echo STEP_ID="auto-release" >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV echo STEP_START=$(date +%s) >> $GITHUB_ENV
- name: "Checkout Source" - name: "Checkout Source"
if: ${{ github.repository_owner == 'puppetlabs' }} if: ${{ github.repository_owner == 'puppetlabs' }}
uses: actions/checkout@v2 uses: actions/checkout@v2
@@ -46,8 +46,14 @@ jobs:
run: | run: |
echo "::set-output name=ver::$(jq --raw-output .version metadata.json)" echo "::set-output name=ver::$(jq --raw-output .version metadata.json)"
- name: "Commit changes" - name: "Check if a release is necessary"
if: ${{ github.repository_owner == 'puppetlabs' }} if: ${{ github.repository_owner == 'puppetlabs' }}
id: check
run: |
git diff --quiet CHANGELOG.md && echo "::set-output name=release::false" || echo "::set-output name=release::true"
- name: "Commit changes"
if: ${{ github.repository_owner == 'puppetlabs' && steps.check.outputs.release == 'true' }}
run: | run: |
git config --local user.email "${{ github.repository_owner }}@users.noreply.github.com" git config --local user.email "${{ github.repository_owner }}@users.noreply.github.com"
git config --local user.name "GitHub Action" git config --local user.name "GitHub Action"
@@ -57,7 +63,7 @@ jobs:
- name: Create Pull Request - name: Create Pull Request
id: cpr id: cpr
uses: puppetlabs/peter-evans-create-pull-request@v3 uses: puppetlabs/peter-evans-create-pull-request@v3
if: ${{ github.repository_owner == 'puppetlabs' }} if: ${{ github.repository_owner == 'puppetlabs' && steps.check.outputs.release == 'true' }}
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Release prep v${{ steps.gv.outputs.ver }}" commit-message: "Release prep v${{ steps.gv.outputs.ver }}"
@@ -73,11 +79,11 @@ jobs:
labels: "maintenance" labels: "maintenance"
- name: PR outputs - name: PR outputs
if: ${{ github.repository_owner == 'puppetlabs' }} if: ${{ github.repository_owner == 'puppetlabs' && steps.check.outputs.release == 'true' }}
run: | run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
- name: "Honeycomb: Record finish step" - name: "Honeycomb: Record finish step"
if: ${{ always() }} if: ${{ always() }}
run: | run: |

View File

@@ -4,18 +4,21 @@ on:
schedule: schedule:
- cron: '0 0 * * *' - cron: '0 0 * * *'
env: env:
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6 HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
HONEYCOMB_DATASET: litmus tests HONEYCOMB_DATASET: litmus tests
jobs: jobs:
setup_matrix: setup_matrix:
if: ${{ github.repository_owner == 'puppetlabs' }}
name: "Setup Test Matrix" name: "Setup Test Matrix"
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
outputs: outputs:
matrix: ${{ steps.get-matrix.outputs.matrix }} matrix: ${{ steps.get-matrix.outputs.matrix }}
steps: steps:
- name: "Honeycomb: Start recording" - name: "Honeycomb: Start recording"
uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1 uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
with: with:
@@ -27,7 +30,6 @@ jobs:
run: | run: |
echo STEP_ID=setup-environment >> $GITHUB_ENV echo STEP_ID=setup-environment >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV echo STEP_START=$(date +%s) >> $GITHUB_ENV
- name: Checkout Source - name: Checkout Source
uses: actions/checkout@v2 uses: actions/checkout@v2
if: ${{ github.repository_owner == 'puppetlabs' }} if: ${{ github.repository_owner == 'puppetlabs' }}
@@ -45,29 +47,27 @@ jobs:
echo ::group::bundler environment echo ::group::bundler environment
buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
echo ::endgroup:: echo ::endgroup::
- name: "Honeycomb: Record Setup Environment time" - name: "Honeycomb: Record Setup Environment time"
if: ${{ github.repository_owner == 'puppetlabs' }} if: ${{ github.repository_owner == 'puppetlabs' }}
run: | run: |
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Environment' buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Environment'
echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV echo STEP_START=$(date +%s) >> $GITHUB_ENV
- name: Setup Acceptance Test Matrix - name: Setup Acceptance Test Matrix
id: get-matrix id: get-matrix
if: ${{ github.repository_owner == 'puppetlabs' }} if: ${{ github.repository_owner == 'puppetlabs' }}
run: | run: |
if [ '${{ github.repository_owner }}' == 'puppetlabs' ]; then if [ '${{ github.repository_owner }}' == 'puppetlabs' ]; then
buildevents cmd $TRACE_ID $STEP_ID matrix_from_metadata -- bundle exec matrix_from_metadata_v2 buildevents cmd $TRACE_ID $STEP_ID matrix_from_metadata -- bundle exec matrix_from_metadata_v2
else else
echo "::set-output name=matrix::{}" echo "::set-output name=matrix::{}"
fi fi
- name: "Honeycomb: Record Setup Test Matrix time" - name: "Honeycomb: Record Setup Test Matrix time"
if: ${{ always() }} if: ${{ always() }}
run: | run: |
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Test Matrix' buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Test Matrix'
Acceptance: Acceptance:
name: "${{matrix.platforms.label}}, ${{matrix.collection}}" name: "${{matrix.platforms.label}}, ${{matrix.collection}}"
needs: needs:
@@ -187,7 +187,7 @@ jobs:
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Remove test environment' buildevents step $TRACE_ID $STEP_ID $STEP_START 'Remove test environment'
slack-workflow-status: slack-workflow-status:
if: always() if: ${{ github.repository_owner == 'puppetlabs' }}
name: Post Workflow Status To Slack name: Post Workflow Status To Slack
needs: needs:
- Acceptance - Acceptance

View File

@@ -2,7 +2,9 @@ name: "PR Testing"
on: [pull_request] on: [pull_request]
env: env:
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6 HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
HONEYCOMB_DATASET: litmus tests HONEYCOMB_DATASET: litmus tests
@@ -14,6 +16,7 @@ jobs:
matrix: ${{ steps.get-matrix.outputs.matrix }} matrix: ${{ steps.get-matrix.outputs.matrix }}
steps: steps:
- name: "Honeycomb: Start recording" - name: "Honeycomb: Start recording"
uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1 uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
with: with:
@@ -25,7 +28,6 @@ jobs:
run: | run: |
echo STEP_ID=setup-environment >> $GITHUB_ENV echo STEP_ID=setup-environment >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV echo STEP_START=$(date +%s) >> $GITHUB_ENV
- name: Checkout Source - name: Checkout Source
uses: actions/checkout@v2 uses: actions/checkout@v2
if: ${{ github.repository_owner == 'puppetlabs' }} if: ${{ github.repository_owner == 'puppetlabs' }}
@@ -43,28 +45,31 @@ jobs:
echo ::group::bundler environment echo ::group::bundler environment
buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
echo ::endgroup:: echo ::endgroup::
- name: "Honeycomb: Record Setup Environment time" - name: "Honeycomb: Record Setup Environment time"
if: ${{ github.repository_owner == 'puppetlabs' }} if: ${{ github.repository_owner == 'puppetlabs' }}
run: | run: |
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Environment' buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Environment'
echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV echo STEP_START=$(date +%s) >> $GITHUB_ENV
- name: Run validation steps
run: |
bundle exec rake validate
if: ${{ github.repository_owner == 'puppetlabs' }}
- name: Setup Acceptance Test Matrix - name: Setup Acceptance Test Matrix
id: get-matrix id: get-matrix
run: | run: |
if [ '${{ github.repository_owner }}' == 'puppetlabs' ]; then if [ '${{ github.repository_owner }}' == 'puppetlabs' ]; then
buildevents cmd $TRACE_ID $STEP_ID matrix_from_metadata -- bundle exec matrix_from_metadata_v2 buildevents cmd $TRACE_ID $STEP_ID matrix_from_metadata -- bundle exec matrix_from_metadata_v2
else else
echo "::set-output name=matrix::{}" echo "::set-output name=matrix::{}"
fi fi
- name: "Honeycomb: Record Setup Test Matrix time" - name: "Honeycomb: Record Setup Test Matrix time"
if: ${{ always() }} if: ${{ always() }}
run: | run: |
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Test Matrix' buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Test Matrix'
Acceptance: Acceptance:
name: "${{matrix.platforms.label}}, ${{matrix.collection}}" name: "${{matrix.platforms.label}}, ${{matrix.collection}}"
needs: needs:
@@ -84,7 +89,7 @@ jobs:
echo 'platform=${{ matrix.platforms.image }}' >> $BUILDEVENT_FILE echo 'platform=${{ matrix.platforms.image }}' >> $BUILDEVENT_FILE
echo 'collection=${{ matrix.collection }}' >> $BUILDEVENT_FILE echo 'collection=${{ matrix.collection }}' >> $BUILDEVENT_FILE
echo 'label=${{ matrix.platforms.label }}' >> $BUILDEVENT_FILE echo 'label=${{ matrix.platforms.label }}' >> $BUILDEVENT_FILE
- name: "Honeycomb: Start recording" - name: "Honeycomb: Start recording"
uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1 uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
with: with:
@@ -97,7 +102,6 @@ jobs:
run: | run: |
echo STEP_ID=${{ matrix.platforms.image }}-${{ matrix.collection }}-1 >> $GITHUB_ENV echo STEP_ID=${{ matrix.platforms.image }}-${{ matrix.collection }}-1 >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV echo STEP_START=$(date +%s) >> $GITHUB_ENV
- name: Checkout Source - name: Checkout Source
uses: actions/checkout@v2 uses: actions/checkout@v2
@@ -112,14 +116,13 @@ jobs:
echo ::group::bundler environment echo ::group::bundler environment
buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
echo ::endgroup:: echo ::endgroup::
- name: "Honeycomb: Record Setup Environment time" - name: "Honeycomb: Record Setup Environment time"
if: ${{ always() }} if: ${{ always() }}
run: | run: |
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Environment' buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Environment'
echo STEP_ID=${{ matrix.platforms.image }}-${{ matrix.collection }}-2 >> $GITHUB_ENV echo STEP_ID=${{ matrix.platforms.image }}-${{ matrix.collection }}-2 >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV echo STEP_START=$(date +%s) >> $GITHUB_ENV
- name: Provision test environment - name: Provision test environment
run: | run: |
buildevents cmd $TRACE_ID $STEP_ID 'rake litmus:provision ${{ matrix.platforms.image }}' -- bundle exec rake 'litmus:provision[${{matrix.platforms.provider}},${{ matrix.platforms.image }}]' buildevents cmd $TRACE_ID $STEP_ID 'rake litmus:provision ${{ matrix.platforms.image }}' -- bundle exec rake 'litmus:provision[${{matrix.platforms.provider}},${{ matrix.platforms.image }}]'
@@ -145,7 +148,7 @@ jobs:
- name: Install module - name: Install module
run: | run: |
buildevents cmd $TRACE_ID $STEP_ID 'rake litmus:install_module' -- bundle exec rake 'litmus:install_module' buildevents cmd $TRACE_ID $STEP_ID 'rake litmus:install_module' -- bundle exec rake 'litmus:install_module'
- name: "Honeycomb: Record deployment times" - name: "Honeycomb: Record deployment times"
if: ${{ always() }} if: ${{ always() }}
run: | run: |
@@ -154,18 +157,16 @@ jobs:
echo STEP_ID=${{ matrix.platforms.image }}-${{ matrix.collection }}-3 >> $GITHUB_ENV echo STEP_ID=${{ matrix.platforms.image }}-${{ matrix.collection }}-3 >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV echo STEP_START=$(date +%s) >> $GITHUB_ENV
echo ::endgroup:: echo ::endgroup::
- name: Run acceptance tests - name: Run acceptance tests
run: | run: |
buildevents cmd $TRACE_ID $STEP_ID 'rake litmus:acceptance:parallel' -- bundle exec rake 'litmus:acceptance:parallel' buildevents cmd $TRACE_ID $STEP_ID 'rake litmus:acceptance:parallel' -- bundle exec rake 'litmus:acceptance:parallel'
- name: "Honeycomb: Record acceptance testing times" - name: "Honeycomb: Record acceptance testing times"
if: ${{ always() }} if: ${{ always() }}
run: | run: |
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Run acceptance tests' buildevents step $TRACE_ID $STEP_ID $STEP_START 'Run acceptance tests'
echo STEP_ID=${{ matrix.platforms.image }}-${{ matrix.collection }}-4 >> $GITHUB_ENV echo STEP_ID=${{ matrix.platforms.image }}-${{ matrix.collection }}-4 >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV echo STEP_START=$(date +%s) >> $GITHUB_ENV
- name: Remove test environment - name: Remove test environment
if: ${{ always() }} if: ${{ always() }}
continue-on-error: true continue-on-error: true
@@ -177,7 +178,7 @@ jobs:
echo echo
echo ::endgroup:: echo ::endgroup::
fi fi
- name: "Honeycomb: Record removal times" - name: "Honeycomb: Record removal times"
if: ${{ always() }} if: ${{ always() }}
run: | run: |

View File

@@ -6,6 +6,7 @@ on:
workflow_dispatch: workflow_dispatch:
pull_request: pull_request:
env: env:
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6 HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
HONEYCOMB_DATASET: litmus tests HONEYCOMB_DATASET: litmus tests
@@ -18,6 +19,7 @@ jobs:
spec_matrix: ${{ steps.get-matrix.outputs.spec_matrix }} spec_matrix: ${{ steps.get-matrix.outputs.spec_matrix }}
steps: steps:
- name: "Honeycomb: Start recording" - name: "Honeycomb: Start recording"
uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1 uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
with: with:
@@ -29,7 +31,6 @@ jobs:
run: | run: |
echo STEP_ID=setup-environment >> $GITHUB_ENV echo STEP_ID=setup-environment >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV echo STEP_START=$(date +%s) >> $GITHUB_ENV
- name: Checkout Source - name: Checkout Source
uses: actions/checkout@v2 uses: actions/checkout@v2
if: ${{ github.repository_owner == 'puppetlabs' }} if: ${{ github.repository_owner == 'puppetlabs' }}
@@ -47,13 +48,16 @@ jobs:
echo ::group::bundler environment echo ::group::bundler environment
buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
echo ::endgroup:: echo ::endgroup::
- name: "Honeycomb: Record Setup Environment time" - name: "Honeycomb: Record Setup Environment time"
if: ${{ github.repository_owner == 'puppetlabs' }} if: ${{ github.repository_owner == 'puppetlabs' }}
run: | run: |
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Environment' buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Environment'
echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV echo STEP_START=$(date +%s) >> $GITHUB_ENV
- name: Run Static & Syntax Tests
if: ${{ github.repository_owner == 'puppetlabs' }}
run: |
buildevents cmd $TRACE_ID $STEP_ID 'static_syntax_checks' -- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
- name: Setup Spec Test Matrix - name: Setup Spec Test Matrix
id: get-matrix id: get-matrix
@@ -63,12 +67,10 @@ jobs:
else else
echo "::set-output name=spec_matrix::{}" echo "::set-output name=spec_matrix::{}"
fi fi
- name: "Honeycomb: Record Setup Test Matrix time" - name: "Honeycomb: Record Setup Test Matrix time"
if: ${{ always() }} if: ${{ always() }}
run: | run: |
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Test Matrix' buildevents step $TRACE_ID $STEP_ID $STEP_START 'Setup Test Matrix'
Spec: Spec:
name: "Spec Tests (Puppet: ${{matrix.puppet_version}}, Ruby Ver: ${{matrix.ruby_version}})" name: "Spec Tests (Puppet: ${{matrix.puppet_version}}, Ruby Ver: ${{matrix.ruby_version}})"
needs: needs:
@@ -91,7 +93,6 @@ jobs:
- run: | - run: |
echo 'puppet_version=${{ env.SANITIZED_PUPPET_VERSION }}' >> $BUILDEVENT_FILE echo 'puppet_version=${{ env.SANITIZED_PUPPET_VERSION }}' >> $BUILDEVENT_FILE
- name: "Honeycomb: Start first step" - name: "Honeycomb: Start first step"
run: | run: |
echo "STEP_ID=${{ env.SANITIZED_PUPPET_VERSION }}-spec" >> $GITHUB_ENV echo "STEP_ID=${{ env.SANITIZED_PUPPET_VERSION }}-spec" >> $GITHUB_ENV
@@ -104,7 +105,6 @@ jobs:
dataset: ${{ env.HONEYCOMB_DATASET }} dataset: ${{ env.HONEYCOMB_DATASET }}
job-status: ${{ job.status }} job-status: ${{ job.status }}
matrix-key: ${{ env.SANITIZED_PUPPET_VERSION }} matrix-key: ${{ env.SANITIZED_PUPPET_VERSION }}
- name: Checkout Source - name: Checkout Source
uses: actions/checkout@v2 uses: actions/checkout@v2
@@ -120,10 +120,7 @@ jobs:
buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
echo ::endgroup:: echo ::endgroup::
- name: Run Static & Syntax Tests
run: |
buildevents cmd $TRACE_ID $STEP_ID 'static_syntax_checks Puppet ${{ matrix.puppet_version }}, Ruby ${{ matrix.ruby_version }}' -- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
- name: Run parallel_spec tests - name: Run parallel_spec tests
run: | run: |
buildevents cmd $TRACE_ID $STEP_ID 'rake parallel_spec Puppet ${{ matrix.puppet_version }}, Ruby ${{ matrix.ruby_version }}' -- bundle exec rake parallel_spec buildevents cmd $TRACE_ID $STEP_ID 'rake parallel_spec Puppet ${{ matrix.puppet_version }}, Ruby ${{ matrix.ruby_version }}' -- bundle exec rake parallel_spec

View File

@@ -4,7 +4,7 @@ require:
- rubocop-rspec - rubocop-rspec
AllCops: AllCops:
DisplayCopNames: true DisplayCopNames: true
TargetRubyVersion: '2.4' TargetRubyVersion: '2.5'
Include: Include:
- "**/*.rb" - "**/*.rb"
Exclude: Exclude:

View File

@@ -24,6 +24,7 @@ group :development do
gem "puppet-module-posix-dev-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby] gem "puppet-module-posix-dev-r#{minor_version}", '~> 1.0', require: false, platforms: [:ruby]
gem "puppet-module-win-default-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw] gem "puppet-module-win-default-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-module-win-dev-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw] gem "puppet-module-win-dev-r#{minor_version}", '~> 1.0', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "voxpupuli-puppet-lint-plugins", '>= 3.0', require: false, platforms: [:ruby]
gem "github_changelog_generator", require: false gem "github_changelog_generator", require: false
end end
group :system_tests do group :system_tests do

View File

@@ -43,6 +43,7 @@ end
PuppetLint.configuration.send('disable_relative') PuppetLint.configuration.send('disable_relative')
if Bundler.rubygems.find_name('github_changelog_generator').any? if Bundler.rubygems.find_name('github_changelog_generator').any?
GitHubChangelogGenerator::RakeTask.new :changelog do |config| GitHubChangelogGenerator::RakeTask.new :changelog do |config|
raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil? raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?

View File

@@ -90,6 +90,6 @@
} }
], ],
"template-url": "https://github.com/puppetlabs/pdk-templates.git#main", "template-url": "https://github.com/puppetlabs/pdk-templates.git#main",
"template-ref": "heads/main-0-g03daa92", "template-ref": "heads/main-0-gf3911d3",
"pdk-version": "2.1.0" "pdk-version": "2.3.0"
} }