Skip to content

Commit

Permalink
Use Github Actions function instead of bash script
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
  • Loading branch information
Grotax committed Aug 22, 2023
1 parent 17f0fc7 commit c325e49
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/api-php-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,17 @@ jobs:
- name: Prep PHP tests
working-directory: ../server/apps/news
run: make php-test-dependencies

- name: Unittests
working-directory: ../server/apps/news
run: make unit-test
env:
CODECOVERAGE: ${{ matrix.codecoverage }}
- name: Upload codecoverage

- name: Upload codecoverage to codecov
if: ${{ matrix.codecoverage }}
working-directory: ../server/apps/news
run: bash <(curl -s https://codecov.io/bash) -f build/php-unit.clover -N ${{ github.sha }}
uses: codecov/codecov-action@v3
with:
files: ../server/apps/news/build/php-unit.clover
flags: unittests
verbose: true
8 changes: 6 additions & 2 deletions .github/workflows/post-merge-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,9 @@ jobs:
env:
CODECOVERAGE: ${{ matrix.codecoverage }}

- name: Upload codecoverage
run: cd ../server/apps/news && bash <(curl -s https://codecov.io/bash) -f build/php-unit.clover
- name: Upload codecoverage to codecov
uses: codecov/codecov-action@v3
with:
files: ../server/apps/news/build/php-unit.clover
flags: unittests
verbose: true

0 comments on commit c325e49

Please sign in to comment.