diff --git a/.github/workflows/phpunit-cc.yml b/.github/workflows/phpunit-cc.yml index 23866c1..1cfdec4 100644 --- a/.github/workflows/phpunit-cc.yml +++ b/.github/workflows/phpunit-cc.yml @@ -64,7 +64,7 @@ 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 @@ -72,7 +72,7 @@ jobs: - name: Generate Badge run: php tests/badge.php - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: cc-badge.svg path: | @@ -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 + diff --git a/.github/workflows/swagger.yml b/.github/workflows/swagger.yml index df68964..9775ed5 100644 --- a/.github/workflows/swagger.yml +++ b/.github/workflows/swagger.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest container: image: escolalms/php:8 - + services: mysql: image: mysql:5.7 @@ -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