Code Monkey home page Code Monkey logo

action-pdk-test-unit's Introduction

action-pdk-test-unit

This action runs pdk test unit on your codebase and fails the step if there are test failures.

Usage

To use the action add the following step to your workflow file (e.g. .github/workflows/pdk-test-unit.yml)

name: Run pdk test unit

on:
  - push
  - pull_request

jobs:
  build:
    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".

action-pdk-test-unit's People

Contributors

cdenneen avatar tuningyourcode avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

action-pdk-test-unit's Issues

some gems fail to install, 'make' not found

Unsure if there is a workaround (or me doing something wrong), or if make should be installed via the dockerfile or in the pdk source image.

In the meantime I have fallen back to using the following in my repo actions:

name: Run unit tests

    on:
      - push
      - pull_request
    
    jobs:
      validating:
        runs-on: ubuntu-latest
    
        steps:
        - name: Clone repository
          uses: actions/checkout@v2
        
        - name: Setup ruby
          uses: actions/setup-ruby@v1
          with:
            ruby-version: 2.5.9
    
        - name: Install bundler and gems
          run: |
            gem install bundler
            bundle install --jobs 4 --retry 3
    
        - name: Run unit tests
          run: |
            bundle exec rake rubocop
            bundle exec rake release_checks

Please release last version from main

Hi Team,

This is just what I was looking for!
I noticed, that specifying puppet version works on the validate action, and this one seems to contain everything on main branch, but it is not released. Tag v1 (and v1.0.0) do not contain the latest changes.

May I ask that you release a version with the latest changes in main (so I can pin my action to that version)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.