From 80da8c5e56c8046487dee59376cf34097181c246 Mon Sep 17 00:00:00 2001 From: Nick Arellano Date: Sat, 30 Aug 2025 20:22:08 -0500 Subject: [PATCH 1/2] ci(workflow): fetch talosctl direct binary and add Composer cache --- .github/workflows/ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f43e3ee..7cb033a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,13 +28,25 @@ 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 From 58fcaa1a799ff012324227493b1a4a8bf3ebf280 Mon Sep 17 00:00:00 2001 From: Nick Arellano Date: Sat, 30 Aug 2025 20:26:35 -0500 Subject: [PATCH 2/2] ci(workflow): use short client version for talosctl --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cb033a..170fcd9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: 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