#97 Make dependencies conditional #180
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
# ------------------------------------------------------------------------------ | |
# <auto-generated> | |
# | |
# This code was generated. | |
# | |
# - To turn off auto-generation set: | |
# | |
# [CustomGitHubActions (AutoGenerate = false)] | |
# | |
# - To trigger manual generation invoke: | |
# | |
# nuke --generate-configuration GitHubActions_Tests --host GitHubActions | |
# | |
# </auto-generated> | |
# ------------------------------------------------------------------------------ | |
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
windows-latest: | |
name: windows-latest | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.* | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.* | |
- name: 'Cache: .nuke/temp, ~/.nuget/packages' | |
uses: actions/cache@v3 | |
with: | |
path: | | |
.nuke/temp | |
~/.nuget/packages | |
key: ${{ runner.os }}-${{ hashFiles('global.json', 'SchemaGenerator/**/*.csproj') }} | |
- name: 'Run: Test' | |
run: ./build.cmd Test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ubuntu-latest: | |
name: ubuntu-latest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.* | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.* | |
- name: 'Cache: .nuke/temp, ~/.nuget/packages' | |
uses: actions/cache@v3 | |
with: | |
path: | | |
.nuke/temp | |
~/.nuget/packages | |
key: ${{ runner.os }}-${{ hashFiles('global.json', 'SchemaGenerator/**/*.csproj') }} | |
- name: 'Run: Test' | |
run: ./build.cmd Test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |