-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds an integration test for running with the latest Cake version
- Loading branch information
1 parent
9df3b21
commit 6423e8b
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|