Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andreypostal committed Aug 17, 2024
1 parent 232495a commit 649172a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,17 @@ jobs:
run: "composer install"

- name: "Run Tests"
run: "vendor/bin/phpunit --coverage-php /tmp/${{ github.sha }}_coverage.cov"
run: "vendor/bin/phpunit --coverage-clover /tmp/${{ github.sha }}_coverage.xml"

- uses: "actions/upload-artifact@v4"
with:
name: "tests_coverage"
path: "/tmp/${{ github.sha }}_coverage.cov"
path: "/tmp/${{ github.sha }}_coverage.xml"
retention-days: 1

- name: "Coveralls"
uses: "coverallsapp/github-action@v2"
with:
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
file: "/tmp/${{ github.sha }}_coverage.xml"

0 comments on commit 649172a

Please sign in to comment.