From 7711e07393e6a86758a1101f938d4b46863b6d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Wis=CC=81niewski?= Date: Fri, 4 Oct 2024 07:43:05 +0200 Subject: [PATCH] Updated github actions --- .github/workflows/phpunit-cc.yml | 8 ++++---- .github/workflows/swagger.yml | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/phpunit-cc.yml b/.github/workflows/phpunit-cc.yml index 23866c10..1cfdec48 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 df689642..9775ed51 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