Skip to content

Commit

Permalink
Adds an integration test for running with the latest Cake version
Browse files Browse the repository at this point in the history
  • Loading branch information
ecampidoglio committed Apr 26, 2024
1 parent 834057c commit f290aa6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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:
Expand Down

0 comments on commit f290aa6

Please sign in to comment.