-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from djjudas21/add_test_github_test_workflow
Add github workflow to run PDK tests and deploy to puppet forge.
- Loading branch information
Showing
6 changed files
with
74 additions
and
9 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,23 @@ | ||
name: Build and publish to Puppet Forge | ||
|
||
on: | ||
push: | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get latest tag | ||
id: vars | ||
run: echo ::set-output name=tag::${GITHUB_REF:10} | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ steps.vars.outputs.tag }} | ||
- name: Build and publish module | ||
uses: barnumbirr/[email protected] | ||
env: | ||
FORGE_API_KEY: ${{ secrets.FORGE_API_KEY }} | ||
REPOSITORY_URL: https://forgeapi.puppet.com/v3/releases |
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,37 @@ | ||
name: Run PDK tests | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run unit tests | ||
uses: puppets-epic-show-theatre/action-pdk-test-unit@v1 | ||
with: | ||
puppet-version: "" | ||
# [optional] | ||
# A string indicating the Puppet version to validate against, such as "5.4.2" or "5.5". | ||
pe-version: "" | ||
# [optional] | ||
# A string indicating the PE version to validate against, such as "2017.3.5" or "2018.1". | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run PDK validate | ||
uses: puppets-epic-show-theatre/action-pdk-validate@v1 | ||
with: | ||
puppet-version: "" | ||
# [optional] | ||
# A string indicating the Puppet version to validate against, such as "5.4.2" or "5.5". | ||
pe-version: "" | ||
# [optional] | ||
# A string indicating the PE version to validate against, such as "2017.3.5" or "2018.1". |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Contributing | ||
|
||
This module was written primarily for internal use - features we haven't needed to | ||
use probably haven't been written. Please send pull requests with new features and | ||
bug fixes. You are also welcome to file issues but I make no guarantees of | ||
development effort if the features aren't useful to my employer. | ||
|
||
This module uses Github Actions for testing and validation. Any contributions | ||
must pass tests cleanly, so please ensure you update the tests to match your | ||
contribution. |
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