diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f43e3ee..170fcd9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,15 +28,27 @@ jobs: tools: composer:v2 coverage: xdebug + - name: Get Composer cache directory + id: composer-cache + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + + - name: Cache Composer files + uses: actions/cache@v4 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php-${{ matrix.php }}-composer- + - name: Install dependencies run: composer install --no-interaction --prefer-dist --no-progress - name: Install talosctl ${{ matrix.talos }} run: | - curl -fsSL -o /tmp/talosctl.tar.gz https://github.com/siderolabs/talos/releases/download/${{ matrix.talos }}/talosctl-linux-amd64.tar.gz - tar -xzf /tmp/talosctl.tar.gz -C /tmp + curl -fsSL -o /tmp/talosctl https://github.com/siderolabs/talos/releases/download/${{ matrix.talos }}/talosctl-linux-amd64 + chmod +x /tmp/talosctl sudo mv /tmp/talosctl /usr/local/bin/talosctl - talosctl version + talosctl version --client --short - name: Run full test suite (unit + feature + integration) run: composer test