coverage test

This commit is contained in:
Ulf Gebhardt 2021-04-13 22:14:13 +02:00
parent e3da6026a3
commit 25bc2fb094
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -240,7 +240,7 @@ jobs:
# UNIT TESTS FRONTEND ####################################################
##########################################################################
- name: frontend | Unit tests
run: docker run -v /coverage:/app/coverage --rm gradido/frontend:test yarn run test
run: docker run -v ~/coverage:/app/coverage --rm gradido/frontend:test yarn run test
##########################################################################
# COVERAGE CHECK FRONTEND ################################################
##########################################################################
@ -254,23 +254,27 @@ jobs:
##########################################################################
# COVERAGE REPORT FRONTEND ################################################
##########################################################################
#- name: show content of /coverage/lcov.info
# run: cat /coverage/lcov.info
#- name: frontend | coverage report
# uses: romeovs/lcov-reporter-action@v0.2.16
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# lcov-file: /coverage/lcov.info
- name: show content of /coverage/lcov.info
run: |
cat ~/coverage/lcov.info
ls ~/coverage
# mv /coverage/* ./coverage/
# cat ./coverage/lcov.info
- name: frontend | coverage report
uses: romeovs/lcov-reporter-action@v0.2.16
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ~/coverage/lcov.info
##########################################################################
# COVERALLS REPORT FRONTEND ##############################################
##########################################################################
- name: frontend | Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: /coverage/lcov.info
- name: frontend | print Coveralls result
run: ls -la /coverage
#- name: frontend | Coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: /coverage/lcov.info
#- name: frontend | print Coveralls result
# run: ls -la /coverage
#test:
# runs-on: ubuntu-latest