From 6423e8b19ddeb413fbf5853e3010bf7c7d464fd9 Mon Sep 17 00:00:00 2001 From: Enrico Campidoglio Date: Wed, 17 Apr 2024 08:53:33 +0200 Subject: [PATCH] Adds an integration test for running with the latest Cake version --- .github/workflows/test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ffe6f6..61328cd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,6 +57,24 @@ jobs: cake-version: tool-manifest script-path: ${{ env.script-directory }}/build.cake target: Test-Cake-Version + - name: Get the latest Cake release from GitHub + id: get-latest-cake-release + uses: octokit/request-action@v2.x + with: + route: GET /repos/cake-build/cake/releases/latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Set the EXPECTED_CAKE_VERSION environment variable + shell: bash + run: | + version=$(echo ${{ fromJson(steps.get-latest-cake-release.outputs.data).tag_name }} | sed 's/v//') + echo "EXPECTED_CAKE_VERSION=$version" >> $GITHUB_ENV + - name: Run with the latest Cake version + uses: ./ + with: + cake-version: latest + script-path: ${{ env.script-directory }}/build.cake + target: Test-Cake-Version - name: Run automatic bootstrapping of Cake modules (Cake >= 1.0.0) uses: ./ with: