Verify #7
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
name: Verify | |
on: | |
workflow_run: | |
workflows: ["Build"] | |
branches: ["develop"] | |
types: | |
- completed | |
jobs: | |
verify: | |
runs-on: windows-2022 | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Checkout the requested branch | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Fetch all tags and branches | |
run: git fetch --prune --unshallow | |
# Setup Java 11 environment which is needed to build | |
- name: Setup Java | |
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
# Setup dotnet 6 (and 2.1 for Wyam, 3.1 for gitReleaseManager, 5.0 for gitVersion) | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4.1.0 | |
with: | |
dotnet-version: | | |
2.1.x | |
3.1.x | |
5.0.x | |
6.0.x | |
# Cache Cake tools | |
- name: Cache Tools | |
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 | |
with: | |
path: tools | |
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }} | |
- name: See the available space | |
run: | | |
echo "tmp points to ${{ runner.temp }}" | |
Get-Volume | |
- name: Build project | |
uses: cake-build/cake-action@1223b6fa067ad192159f43b50cd4f953679b0934 # v2.0.0 | |
with: | |
script-path: recipe.cake | |
target: Run-Plugin-Verifier | |
cake-version: tool-manifest | |
arguments: | | |
enable-verifier: true |