Skip to content

Update build-test.yml #5

Update build-test.yml

Update build-test.yml #5

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# https://github.com/rhysd/actionlint
name: Build-Test
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Cache NuGet Packages
uses: actions/cache@v3
with:
key: vertical-template-nuget
path: ~/.nuget/packages
- name: Restore dependencies
run: dotnet restore Vertical.Slice.Template.sln
- name: Build Version
run: dotnet build Vertical.Slice.Template.sln -c Release --no-restore
- name: Test Version
run: |
dotnet test Vertical.Slice.Template.sln -c Release --no-restore --no-build