chore(deps): update dependency microsoft.net.test.sdk to 17.11.1 #1082
Workflow file for this run
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: Build | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
- "feature/**" | |
- "release/**" | |
- "hotfix/**" | |
tags: | |
- "*" | |
paths-ignore: | |
- "README.md" | |
pull_request: | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
NUGET_SOURCE: "https://api.nuget.org/v3/index.json" | |
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} | |
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} | |
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} | |
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }} | |
PUBLISH_TOKEN: ${{ secrets.JB_PUBLISH_TOKEN }} | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ windows-2022, ubuntu-22.04, macos-12 ] | |
steps: | |
- name: Checkout the requested branch | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Fetch all tags and branches | |
run: git fetch --prune --unshallow | |
# Validates the gradle wrappers and saves us from getting malicious PRs | |
- name: Gradle Wrapper Validation | |
uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 # v3.5.0 | |
# Setup Java 11 environment which is needed to build | |
- name: Setup Java | |
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # 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@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 | |
with: | |
dotnet-version: | | |
2.1.x | |
3.1.x | |
5.0.x | |
6.0.x | |
# Cache Gradle Wrapper | |
- name: Setup Gradle Wrapper Cache | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4 | |
with: | |
path: ~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | |
# install libgit2-dev on ubuntu, so libgit2sharp works | |
- name: Install libgit-dev | |
if: runner.os == 'Linux' | |
run: sudo apt-get install -y libgit2-dev | |
# Cache Cake tools | |
- name: Cache Tools | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4 | |
with: | |
path: tools | |
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }} | |
- name: See the available space | |
if: runner.os != 'Windows' | |
run: | | |
echo "tmp points to ${{ runner.temp }}" | |
df -h | |
- name: See the available space | |
if: runner.os == 'Windows' | |
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: CI | |
cake-version: tool-manifest | |
# currently, Cake.Recipe does not upload artifacts when run on gh-actions | |
- name: Upload Issues | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4 | |
with: | |
if-no-files-found: warn | |
name: ${{ matrix.os }} Issues | |
path: | | |
BuildArtifacts/report.html | |
BuildArtifacts/**/coverlet/*.xml | |
- name: Upload Packages | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4 | |
if: runner.os == 'Windows' | |
with: | |
if-no-files-found: warn | |
name: package | |
path: BuildArtifacts/Packages/**/* |