-
Notifications
You must be signed in to change notification settings - Fork 29
40 lines (31 loc) · 924 Bytes
/
build-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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