Skip to content

Commit

Permalink
Add GitHub unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philippeganz committed Jul 14, 2023
1 parent 0133dc5 commit 759d015
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test_unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Puppet unit tests
run-name: ${{ github.actor }} is running Puppet tests
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
container: puppet/pdk:latest
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: pdk test unit
run: pdk test unit --puppet-version=7
14 changes: 14 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Puppet syntax check
run-name: ${{ github.actor }} is running Puppet tests
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
container: puppet/pdk:latest
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: pdk validate
run: pdk validate --puppet-version=7
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
![PDK validate](https://github.com/philippeganz/puppet-stunnel/actions/workflows/validate.yml/badge.svg)
![PDK test unit](https://github.com/philippeganz/puppet-stunnel/actions/workflows/test_unit.yml/badge.svg)

# puppet-stunnel

## Table of Contents
Expand Down

0 comments on commit 759d015

Please sign in to comment.