-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.01 KB
/
build.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
41
42
name: CI Build
on:
push:
branches:
- main
- develop
schedule:
- cron: "0 8 * * 1" # At 08:00 on Monday
jobs:
unit-test:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
steps:
- name: Setup .Net 7.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- uses: actions/checkout@v3
- name: Retore
run: dotnet restore --nologo
- name: Build
run: dotnet build --no-restore --nologo --configuration Release
- name: Test
run: dotnet test --nologo --no-build --configuration Release
code-style:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
steps:
- uses: actions/checkout@v3
- name: Setup .Net 7.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Retore
run: dotnet restore --nologo
- name: .Net Format
run: dotnet format --no-restore --verify-no-changes -v diag