diff --git a/.forgejo/workflows/phpcs.yml b/.forgejo/workflows/phpcs.yml index 4db1ac5..aa586d4 100755 --- a/.forgejo/workflows/phpcs.yml +++ b/.forgejo/workflows/phpcs.yml @@ -25,6 +25,13 @@ jobs: - name: Checkout uses: https://code.forgejo.org/actions/checkout@v4 + - name: Cache Composer + id: cache-composer + uses: https://code.forgejo.org/actions/actions/cache@v4 + with: + path: vendor + key: cache-composer-1 + - name: Setup PHP uses: https://github.com/shivammathur/setup-php@v2 with: @@ -35,6 +42,7 @@ jobs: runner: self-hosted - name: Install Composer dependencies for PHP + if: steps.cache-composer.outputs.cache-hit != 'true' uses: ramsey/composer-install@v3 - name: Detect coding standard violations diff --git a/.forgejo/workflows/phpunit.yml b/.forgejo/workflows/phpunit.yml index f71e753..8d7bef6 100644 --- a/.forgejo/workflows/phpunit.yml +++ b/.forgejo/workflows/phpunit.yml @@ -30,7 +30,7 @@ jobs: - name: Cache WordPress Setup id: cache-wordpress - uses: actions/cache@v4 + uses: https://code.forgejo.org/actions/actions/cache@v4 with: path: | WP_TESTS_DIR @@ -53,6 +53,7 @@ jobs: run: sudo apt update && sudo apt -y upgrade && sudo apt -y install mysql-client - name: Setup Test Environment + if: steps.cache-wordpress.outputs.cache-hit != 'true' run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 6.6 - name: Unit Testing