-
Notifications
You must be signed in to change notification settings - Fork 11
41 lines (32 loc) · 851 Bytes
/
Copy pathbuild.yml
File metadata and controls
41 lines (32 loc) · 851 Bytes
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
41
name: Build and Test full solution
on:
pull_request:
branches: [ main ]
paths:
- '.github/workflows/build.yml'
- 'Directory.Build.*'
- 'src/**'
- 'tests/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 8
env:
DOTNET_NOLOGO: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_GENERATE_ASPNET_CERTIFICATE: 0
DOTNET_CLI_TELEMETRY_OPTOUT: 1
NUGET_CERT_REVOCATION_MODE: "offline"
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore Heroplate.sln
- name: Build
run: dotnet build Heroplate.sln --no-restore
- name: Test
run: dotnet test Heroplate.sln --no-build --verbosity normal