|
1 | | -# FHEM/98_Matrix.pm |
| 1 | +# FHEM/70_Matrix.pm |
2 | 2 | ## Vorwort |
3 | 3 | Ich habe seit gefühlten Ewigkeiten FHEM im Einsatz und jetzt neu auch Matrix, was bei mir Telegram als Meldungszentrale ablösen soll. Ich bin dabei einen Bot als FHEM-Modul aufzubauen der sowohl Meldungen absetzen kann als auch Befehle empfangen kann. |
4 | 4 |
|
@@ -32,51 +32,4 @@ https://wiki.fhem.de/wiki/DevelopmentModuleIntro |
32 | 32 |
|
33 | 33 | ### lib/ |
34 | 34 |
|
35 | | -Put any libs(pure perl modules) you provide in a own package (not main) create in here |
36 | | - |
37 | | -## automated Testing |
38 | | - |
39 | | -### t/FHEM/98_Matrix/* |
40 | | - |
41 | | -Unittests for the fhem mdoule run via github actions if needed you have to write them into folder t/FHEM/<modulename>/ |
42 | | - |
43 | | - |
44 | | -### t/FHEM/<packagename>/* |
45 | | - |
46 | | -Unittests for the perl mdoule run via github actions if needed you have to write them into folder t/FHEM/<PACKAGENAME>/ |
47 | | -Unittests (run prove on perl modules (testscripts)) needs to be enabled in the fhem_test.yml workflow |
48 | | - |
49 | | -``` |
50 | | - - name: run prove on perl modules (testscripts) |
51 | | - run: prove --exec 'perl -MDevel::Cover=-silent,1 -I FHEM ' -I FHEM -r -vv t/FHEM/<packagename> |
52 | | -``` |
53 | | - |
54 | | -### cpanfile |
55 | | - |
56 | | -Cpan modules needed for running your module and your tests, they will be installed after perl is set up and running |
57 | | - |
58 | | -### .github/workflows/update.yml |
59 | | - |
60 | | -This is a github action workflow which creates a controls file which is needed for fhem update command. |
61 | | -You are then able to install your new module |
62 | | -`update all https://raw.githubusercontent.com/fhem/<reponame>/<branch>/controls_<reponame>.txt` |
63 | | - |
64 | | -### .github/workflows/fhem_test.yml |
65 | | - |
66 | | -This is a github action workflow which runs all your tests in t/xx_<Module> folder with different perl versions. |
67 | | - |
68 | | -### .github/dependabot.yml |
69 | | - |
70 | | -Dependabot will check if there are new versions form used actions you are using in your worflows and inform you. |
71 | | - |
72 | | -### Code coverage |
73 | | -You can use codecov (https://about.codecov.io/) to monitor your test code coveage. |
74 | | -Simply enable the coverage action an provide a token vom codecov.io via github secrets |
75 | | - |
76 | | - - uses: codecov/codecov-action@v1 |
77 | | - with: |
78 | | - token: ${{ secrets.CODECOV_TOKEN }} |
79 | | - file: ./cover_db/clover.xml |
80 | | - flags: unittests,fhem,modules |
81 | | - name: fhem (testscripts) ${{ matrix.perl }} |
82 | | - |
| 35 | +Put any libs(pure perl modules) you provide in a own package (not main) create in here |
0 commit comments