-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow setting language versions in all workflows
fix: remove pre-commit action from terraform-lint as the separate workflow should be used fix: rename final workflow from .yml to .yaml feat: move all shared workflows to their own directory outside `.github`
- Loading branch information
Showing
14 changed files
with
56 additions
and
28 deletions.
There are no files selected for viewing
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
|
@@ -17,6 +17,11 @@ | |
description: The version of Puppet to use in PDK | ||
required: false | ||
type: string | ||
ruby_version: | ||
description: The version of Ruby to use for the run. | ||
default: '3.2' | ||
required: false | ||
type: string | ||
timeout_minutes: | ||
description: The maximum time (in minutes) for a job to run. | ||
default: 5 | ||
|
@@ -37,18 +42,18 @@ jobs: | |
steps: | ||
- name: 'Checkout repo' | ||
uses: 'actions/checkout@v4' | ||
- name: 'Set up Ruby' | ||
- name: "Set up Ruby ${{ inputs.ruby_version }}" | ||
uses: 'ruby/[email protected]' | ||
env: | ||
BUNDLE_SILENCE_ROOT_WARNING: '1' | ||
BUNDLE_WITH: 'development' | ||
PUPPET_GEM_VERSION: "~> ${{ inputs.puppet_version }}" | ||
with: | ||
bundler-cache: true | ||
ruby-version: '3.2' | ||
ruby-version: "${{ inputs.ruby_version }}" | ||
rubygems: 'latest' | ||
- name: 'Module build' | ||
run: 'bundle exec pdk build --force' | ||
- name: 'Test module install' | ||
run: 'bundle exec puppet module install pkg/${{ inputs.puppet_package_name }}-*.tar.gz' | ||
run: "bundle exec puppet module install pkg/${{ inputs.puppet_package_name }}-*.tar.gz" | ||
timeout-minutes: ${{ inputs.timeout_minutes }} |
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 |
---|---|---|
|
@@ -12,6 +12,11 @@ | |
description: The version of Puppet to use in PDK | ||
required: false | ||
type: string | ||
ruby_version: | ||
description: The version of Ruby to use for the run. | ||
default: '3.2' | ||
required: false | ||
type: string | ||
timeout_minutes: | ||
description: The maximum time (in minutes) for a job to run. | ||
default: 5 | ||
|
@@ -35,15 +40,15 @@ jobs: | |
steps: | ||
- name: 'Checkout repo' | ||
uses: 'actions/checkout@v4' | ||
- name: 'Set up Ruby' | ||
- name: "Set up Ruby ${{ inputs.ruby_version }}" | ||
uses: 'ruby/[email protected]' | ||
env: | ||
BUNDLE_SILENCE_ROOT_WARNING: '1' | ||
BUNDLE_WITH: 'development' | ||
PUPPET_GEM_VERSION: "~> ${{ inputs.puppet_version }}" | ||
with: | ||
bundler-cache: true | ||
ruby-version: '3.2' | ||
ruby-version: "${{ inputs.ruby_version }}" | ||
rubygems: 'latest' | ||
- name: 'Module build' | ||
run: 'bundle exec pdk build --force' | ||
|
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 |
---|---|---|
|
@@ -12,6 +12,11 @@ | |
description: The version of Puppet to use in PDK | ||
required: false | ||
type: string | ||
ruby_version: | ||
description: The version of Ruby to use for the run. | ||
default: '3.2' | ||
required: false | ||
type: string | ||
timeout_minutes: | ||
description: The maximum time (in minutes) for a job to run. | ||
default: 5 | ||
|
@@ -32,15 +37,15 @@ jobs: | |
steps: | ||
- name: 'Checkout repo' | ||
uses: 'actions/checkout@v4' | ||
- name: 'Set up Ruby' | ||
- name: "Set up Ruby ${{ inputs.ruby_version }}" | ||
uses: 'ruby/[email protected]' | ||
env: | ||
BUNDLE_SILENCE_ROOT_WARNING: '1' | ||
BUNDLE_WITH: 'development' | ||
PUPPET_GEM_VERSION: "~> ${{ inputs.puppet_version }}" | ||
with: | ||
bundler-cache: true | ||
ruby-version: '3.2' | ||
ruby-version: "${{ inputs.ruby_version }}" | ||
rubygems: 'latest' | ||
- name: 'Run static analysis' | ||
run: bundle exec pdk validate --puppet-version=${{ inputs.puppet_version }} | ||
|
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 |
---|---|---|
|
@@ -35,15 +35,15 @@ jobs: | |
steps: | ||
- name: 'Checkout repo' | ||
uses: 'actions/checkout@v4' | ||
- name: 'Set up Ruby' | ||
- name: "Set up Ruby ${{ matrix.ruby }}" | ||
uses: 'ruby/[email protected]' | ||
env: | ||
BUNDLE_SILENCE_ROOT_WARNING: '1' | ||
BUNDLE_WITH: 'development' | ||
PUPPET_GEM_VERSION: "~> ${{ matrix.puppet }}" | ||
with: | ||
bundler-cache: true | ||
ruby-version: ${{ matrix.ruby }} | ||
ruby-version: "${{ matrix.ruby }}" | ||
rubygems: 'latest' | ||
- name: 'Run unit tests' | ||
run: 'bundle exec pdk test unit --puppet-version=${{ matrix.puppet }} -v' | ||
|
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
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 |
---|---|---|
|
@@ -33,9 +33,7 @@ jobs: | |
- name: 'Checkout repo' | ||
uses: 'actions/checkout@v4' | ||
- name: 'Setup TFLint' | ||
uses: terraform-linters/setup-tflint@v4 | ||
- name: 'Run pre-commit' | ||
uses: 'pre-commit/[email protected]' | ||
uses: 'terraform-linters/setup-tflint@v4' | ||
- name: 'Run TFLint' | ||
run: tflint -c ${{ inputs.tflint_config_path }} | ||
timeout-minutes: ${{ inputs.timeout_minutes }} |
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 |
---|---|---|
|
@@ -57,7 +57,7 @@ jobs: | |
github_token: ${{ secrets.wf_github_token }} | ||
- name: Run Trivy vulnerability scanner in IaC mode | ||
if: ${{ inputs.run_trivy == true }} | ||
uses: aquasecurity/[email protected] | ||
uses: 'aquasecurity/[email protected]' | ||
with: | ||
scan-type: 'config' | ||
hide-progress: false | ||
|
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