Git Product home page Git Product logo

fhem-batterychargeoptimizer's Introduction

mod_template

Template Repository for your custom Module

Files included in this template:

Fhem module files and folders

FHEM/98_HELLO.pm

Hello world module. Included here for demonstration from FHEM Wiki

Look for development guideof a FHEM Module at the FHEM wiki https://wiki.fhem.de/wiki/DevelopmentModuleIntro

Write your own module with your own filename

lib/

Put any libs(pure perl modules) you provide in a own package (not main) create in here

automated Testing

t/FHEM/98_HELLO/*

Unittests for the fhem mdoule run via github actions if needed you have to write them into folder t/FHEM//

t/FHEM//*

Unittests for the perl mdoule run via github actions if needed you have to write them into folder t/FHEM// Unittests (run prove on perl modules (testscripts)) needs to be enabled in the fhem_test.yml workflow

    - name: run prove on perl modules (testscripts)
      run: prove --exec 'perl -MDevel::Cover=-silent,1 -I FHEM ' -I FHEM -r -vv t/FHEM/<packagename>

cpanfile

Cpan modules needed for running your module and your tests, they will be installed after perl is set up and running

.github/workflows/update.yml

This is a github action workflow which creates a controls file which is needed for fhem update command. You are then able to install your new module update all https://raw.githubusercontent.com/fhem/<reponame>/<branch>/controls_<reponame>.txt

.github/workflows/fhem_test.yml

This is a github action workflow which runs all your tests in t/xx_ folder with different perl versions.

.github/dependabot.yml

Dependabot will check if there are new versions form used actions you are using in your worflows and inform you.

Code coverage

You can use codecov (https://about.codecov.io/) to monitor your test code coveage. Simply enable the coverage action an provide a token vom codecov.io via github secrets

- uses: codecov/codecov-action@v1
  with:
    token: ${{ secrets.CODECOV_TOKEN }}
    file: ./cover_db/clover.xml
    flags: unittests,fhem,modules
    name: fhem (testscripts) ${{ matrix.perl }}

fhem-batterychargeoptimizer's People

Contributors

actions-user avatar captainroot avatar

Watchers

 avatar

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.