Update fhem_test.yml
This commit is contained in:
parent
50ba87c46d
commit
46c7255893
100
.github/workflows/fhem_test.yml
vendored
100
.github/workflows/fhem_test.yml
vendored
@ -44,54 +44,54 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: ${{ steps.extract_branch.outputs.branch }}
|
branch: ${{ steps.extract_branch.outputs.branch }}
|
||||||
test:
|
# test:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'push'
|
# if: github.event_name == 'push'
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
os: ['ubuntu-latest']
|
# os: ['ubuntu-latest']
|
||||||
perl: [ '5.22', '5.28', '5.30', '5.32' ]
|
# perl: [ '5.22', '5.28', '5.30', '5.32' ]
|
||||||
|
#
|
||||||
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
|
# name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
- uses: shogo82148/actions-setup-perl@v1.18.0
|
# - uses: shogo82148/actions-setup-perl@v1.18.0
|
||||||
with:
|
|
||||||
perl-version: ${{ matrix.perl }}
|
|
||||||
install-modules-with: cpanm
|
|
||||||
install-modules-args: --notest
|
|
||||||
- name: install fhem via deb package
|
|
||||||
run: |
|
|
||||||
wget -qO - http://debian.fhem.de/archive.key | sudo apt-key add -
|
|
||||||
echo "deb http://debian.fhem.de/nightly/ /" | sudo tee -a /etc/apt/sources.list
|
|
||||||
sudo apt-get update -qq
|
|
||||||
sudo apt-get install fhem -y
|
|
||||||
sudo systemctl stop fhem
|
|
||||||
sudo chown -R --reference=README.md /opt/fhem
|
|
||||||
# - name: run prove on perl modules (testscripts)
|
|
||||||
# run: prove --exec 'perl -MDevel::Cover=-silent,1 -I FHEM ' -I FHEM -r -vv t/FHEM/<packagename>
|
|
||||||
# - uses: codecov/codecov-action@v1
|
|
||||||
# with:
|
# with:
|
||||||
# token: ${{ secrets.CODECOV_TOKEN }}
|
# perl-version: ${{ matrix.perl }}
|
||||||
# file: ./cover_db/clover.xml
|
# install-modules-with: cpanm
|
||||||
# flags: unittests,perl,modules
|
# install-modules-args: --notest
|
||||||
# name: perl modules (testscripts) ${{ matrix.perl }}
|
# - name: install fhem via deb package
|
||||||
- name: run prove fhem testsuite ${{ matrix.perl }} on modules
|
# run: |
|
||||||
run: |
|
# wget -qO - http://debian.fhem.de/archive.key | sudo apt-key add -
|
||||||
cp -r FHEM/* ${FHEM_DIR}/FHEM/
|
# echo "deb http://debian.fhem.de/nightly/ /" | sudo tee -a /etc/apt/sources.list
|
||||||
cd ${FHEM_DIR}
|
# sudo apt-get update -qq
|
||||||
prove --exec 'perl -MDevel::Cover=-silent,1 fhem.pl -t' -I FHEM -r -vv ${GITHUB_WORKSPACE}/t/FHEM/98_Matrix/[0-9][0-9]_*/
|
# sudo apt-get install fhem -y
|
||||||
sleep 3
|
# sudo systemctl stop fhem
|
||||||
cp -R /opt/fhem/cover_db ${GITHUB_WORKSPACE}/
|
# sudo chown -R --reference=README.md /opt/fhem
|
||||||
ls -l ${GITHUB_WORKSPACE}
|
## - name: run prove on perl modules (testscripts)
|
||||||
env:
|
## run: prove --exec 'perl -MDevel::Cover=-silent,1 -I FHEM ' -I FHEM -r -vv t/FHEM/<packagename>
|
||||||
FHEM_DIR: /opt/fhem
|
## - uses: codecov/codecov-action@v1
|
||||||
- name: Create clover report
|
## with:
|
||||||
run: cover -report clover
|
## token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
# - uses: codecov/codecov-action@v1
|
## file: ./cover_db/clover.xml
|
||||||
# with:
|
## flags: unittests,perl,modules
|
||||||
# token: ${{ secrets.CODECOV_TOKEN }}
|
## name: perl modules (testscripts) ${{ matrix.perl }}
|
||||||
# file: ./cover_db/clover.xml
|
# - name: run prove fhem testsuite ${{ matrix.perl }} on modules
|
||||||
# flags: unittests,fhem,modules
|
# run: |
|
||||||
# name: fhem (testscripts) ${{ matrix.perl }}
|
# cp -r FHEM/* ${FHEM_DIR}/FHEM/
|
||||||
|
# cd ${FHEM_DIR}
|
||||||
|
# prove --exec 'perl -MDevel::Cover=-silent,1 fhem.pl -t' -I FHEM -r -vv ${GITHUB_WORKSPACE}/t/FHEM/98_Matrix/[0-9][0-9]_*/
|
||||||
|
# sleep 3
|
||||||
|
# cp -R /opt/fhem/cover_db ${GITHUB_WORKSPACE}/
|
||||||
|
# ls -l ${GITHUB_WORKSPACE}
|
||||||
|
# env:
|
||||||
|
# FHEM_DIR: /opt/fhem
|
||||||
|
# - name: Create clover report
|
||||||
|
# run: cover -report clover
|
||||||
|
## - uses: codecov/codecov-action@v1
|
||||||
|
## with:
|
||||||
|
## token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
## file: ./cover_db/clover.xml
|
||||||
|
## flags: unittests,fhem,modules
|
||||||
|
## name: fhem (testscripts) ${{ matrix.perl }}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user