-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a workflow to produce code coverage
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Create Docker Container | ||
run: | | ||
docker build . -t ci-image --build-arg PHP_VERSION=7.3 | ||
docker run --interactive --detach \ | ||
--volume ${{ github.workspace }}:/app \ | ||
--env CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }} \ | ||
--name ci ci-image | ||
- name: Install Dependencies | ||
run: docker exec ci composer update --no-interaction --no-ansi --prefer-dist | ||
|
||
- name: PHPUnit | ||
run: docker exec ci vendor/bin/phpunit --coverage-clover=coverage.xml | ||
|
||
- name: Code Coverage | ||
run: docker exec ci bash -c "bash <(curl -s https://codecov.io/bash)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters