From 544642dddc48c1a8357d7bbe6f5a8a0b52304ad2 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Tue, 13 Apr 2021 23:04:47 +0200 Subject: [PATCH] use absolute path, coverage check --- .github/workflows/test.yml | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e2f21d785..42d09cd7d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -240,33 +240,27 @@ jobs: # UNIT TESTS FRONTEND #################################################### ########################################################################## - name: frontend | Unit tests - run: docker run -v ~/coverage:/app/coverage --rm gradido/frontend:test yarn run test - ########################################################################## - # COVERAGE CHECK FRONTEND ################################################ - ########################################################################## - #- name: frontend | Coverage check - # uses: devmasx/coverage-check-action@v1.2.0 - # with: - # type: simplecov - # result_path: /coverage/coverage-final.json - # min_coverage: 10 - # token: ${{ github.token }} + run: | + docker run -v ~/coverage:/app/coverage --rm gradido/frontend:test yarn run test + mv ~/coverage ./coverage ########################################################################## # COVERAGE REPORT FRONTEND ################################################ ########################################################################## - - name: show content of /coverage/lcov.info - run: | - ls ~/coverage - pwd - cd ~ - pwd - # mv /coverage/* ./coverage/ - # cat ./coverage/lcov.info - name: frontend | coverage report uses: romeovs/lcov-reporter-action@v0.2.21 with: github-token: ${{ secrets.GITHUB_TOKEN }} - lcov-file: /home/runner/coverage/lcov.info + lcov-file: ./coverage/lcov.info + ########################################################################## + # COVERAGE CHECK FRONTEND ################################################ + ########################################################################## + - name: frontend | Coverage check + uses: devmasx/coverage-check-action@v1.2.0 + with: + type: lcov + result_path: ./coverage/lcov.info + min_coverage: 10 + token: ${{ github.token }} ########################################################################## # COVERALLS REPORT FRONTEND ############################################## ##########################################################################