-
Notifications
You must be signed in to change notification settings - Fork 19
34 lines (27 loc) · 882 Bytes
/
dotnet.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
name: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Install CA certificates to ensure SSL trust
- name: Install CA Certificates
run: sudo apt-get update && sudo apt-get install -y ca-certificates
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
# Trust the ASP.NET Core development certificate
- name: Trust ASP.NET Core HTTPS Development Certificate
run: dotnet dev-certs https --trust
- name: Restore dependencies
run: dotnet restore CleanAspire.sln
- name: Build
run: dotnet build CleanAspire.sln --no-restore
- name: Run tests
run: dotnet test ./tests/CleanAspire.Tests/CleanAspire.Tests.csproj --no-build --verbosity normal