-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update module, bump pdk version * Fix origin pe primary variable * added optional to origin_pe_primary_server * Fix variable line 175 * Update fail_plan pe_primary target. * Update change log
- Loading branch information
1 parent
ee26029
commit c975c2e
Showing
16 changed files
with
268 additions
and
137 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
name: "Lint testing" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
setup_matrix: | ||
name: "Setup Test Matrix" | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
matrix: ${{ steps.get-matrix.outputs.matrix }} | ||
|
||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Activate Ruby 3.2 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.3" | ||
bundler-cache: true | ||
|
||
- name: Print bundle environment | ||
run: | | ||
echo ::group::bundler environment | ||
bundle env | ||
echo ::endgroup:: | ||
- name: Setup Integration Test Matrix | ||
id: get-matrix | ||
run: | | ||
echo "matrix=$(cat test_matrix.json | tr -s '\n' ' ')" >> $GITHUB_OUTPUT | ||
cat $GITHUB_OUTPUT | ||
lint: | ||
name: "Lint tests (${{matrix.collection.agent_version}})" | ||
needs: | ||
- setup_matrix | ||
if: ${{ needs.setup_matrix.outputs.matrix != '{}' }} | ||
|
||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{fromJson(needs.setup_matrix.outputs.matrix)}} | ||
|
||
env: | ||
PUPPET_GEM_VERSION: ${{matrix.collection.gem_version}} | ||
FACTER_GEM_VERSION: 'https://github.com/puppetlabs/facter#main' # why is this set? | ||
|
||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Activate Ruby 3.2 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.3" | ||
bundler-cache: true | ||
|
||
- name: Print bundle environment | ||
run: | | ||
echo ::group::bundler environment | ||
bundle env | ||
echo ::endgroup:: | ||
- name: "Run tests" | ||
run: | | ||
bundle exec rake validate |
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
name: "Unit Testing" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
setup_matrix: | ||
name: "Setup Test Matrix" | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
matrix: ${{ steps.get-matrix.outputs.matrix }} | ||
|
||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Activate Ruby 3.2 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.3" | ||
bundler-cache: true | ||
|
||
- name: Print bundle environment | ||
run: | | ||
echo ::group::bundler environment | ||
bundle env | ||
echo ::endgroup:: | ||
- name: Setup Integration Test Matrix | ||
id: get-matrix | ||
run: | | ||
echo "matrix=$(cat test_matrix.json | tr -s '\n' ' ')" >> $GITHUB_OUTPUT | ||
cat $GITHUB_OUTPUT | ||
Unit: | ||
name: "Unit tests (${{matrix.collection.agent_version}})" | ||
needs: | ||
- setup_matrix | ||
if: ${{ needs.setup_matrix.outputs.matrix != '{}' }} | ||
|
||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{fromJson(needs.setup_matrix.outputs.matrix)}} | ||
|
||
env: | ||
PUPPET_GEM_VERSION: ${{matrix.collection.gem_version}} | ||
FACTER_GEM_VERSION: 'https://github.com/puppetlabs/facter#main' # why is this set? | ||
|
||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Activate Ruby 3.2 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2.3" | ||
bundler-cache: true | ||
|
||
- name: Print bundle environment | ||
run: | | ||
echo ::group::bundler environment | ||
bundle env | ||
echo ::endgroup:: | ||
- name: "Run tests" | ||
run: | | ||
bundle exec rake parallel_spec |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"recommendations": [ | ||
"puppet.puppet-vscode", | ||
"rebornix.Ruby" | ||
"Shopify.ruby-lsp" | ||
] | ||
} |
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
Oops, something went wrong.