Skip to content

Commit

Permalink
Updated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
daVitekPL committed Oct 4, 2024
1 parent 73b34ea commit 7711e07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/phpunit-cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ jobs:
rm -f vendor/escolalms/cmi5/tests/Exceptions/Handler.php

- name: Add pcov
run: pecl install pcov && docker-php-ext-enable pcov
run: pecl install pcov && docker-php-ext-enable pcov

- name: Run tests
run: XDEBUG_MODE=off php -dpcov.enabled=1 -dpcov.directory=. ./vendor/bin/phpunit --coverage-clover coverage.xml --coverage-text | tee coverage.txt

- name: Generate Badge
run: php tests/badge.php

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: cc-badge.svg
path: |
Expand Down Expand Up @@ -100,5 +100,5 @@ jobs:
target-branch: "main"

- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY
run: echo $DESTINATION_CLONED_DIRECTORY

4 changes: 3 additions & 1 deletion .github/workflows/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
container:
image: escolalms/php:8

services:
mysql:
image: mysql:5.7
Expand Down Expand Up @@ -52,6 +52,8 @@ jobs:

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: swagger-ui
Expand Down

0 comments on commit 7711e07

Please sign in to comment.