Skip to content

Commit

Permalink
Removed classic make test from workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sidey79 committed Feb 7, 2021
1 parent 5450450 commit d8d88de
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions .github/workflows/prove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,29 +54,6 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cover_db/clover.xml
flags: unittests,fhem,modules
name: fhem (testscripts) ${{ matrix.perl }}
- name: run make test (classic fhem unittest module)
id: classic_make_test
run: |
timeout 40 bash -c 'while /usr/bin/pgrep perl >> /dev/null; do sleep 1; echo .; done;'
make test PERL_OPTS="-MDevel::Cover" 2>make_error.txt && sudo pkill "^perl"
echo "::set-output name=exitcode::$(echo $?)"
cat make_error.txt
timeout 40 bash -c 'while /usr/bin/pgrep perl >> /dev/null; do sleep 1; echo .; done;' || sudo pkill "^perl"
sleep 3
cp -R /opt/fhem/cover_db ./
# grep -oP "^make:.*\[(.*)\].*Error" make_error.txt | awk -F'[][]' '{print $2}'
shell: bash {0}
- name: Create clover report
run: cover -report clover
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cover_db/clover.xml
flags: unittest
name: unittest module ${{ matrix.perl }}
- name: Fail if there was an error during tests
run: exit 1
if: ${{ steps.classic_make_test.outputs.exitcode != 0 }}
name: fhem (testscripts) ${{ matrix.perl }}


0 comments on commit d8d88de

Please sign in to comment.