-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (37 loc) · 1.04 KB
/
main.yml
File metadata and controls
46 lines (37 loc) · 1.04 KB
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
43
44
45
46
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: CI
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: pwsh
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_CLI_WORKLOAD_UPDATE_NOTIFY_DISABLE: 'true'
DOTNET_DISABLE_GUI_ERRORS: 1
DOTNET_GENERATE_ASPNET_CERTIFICATE: 0
DOTNET_NOLOGO: 1
POWERSHELL_TELEMETRY_OPTOUT: 1
POWERSHELL_UPDATECHECK: 'Off'
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
global-json-file: global.json
- name: Restore
run: dotnet restore -p:Configuration=Release
- name: Build
run: dotnet build --no-restore -c Release "-p:SourceRevisionId=$(git rev-parse --short $env:GITHUB_SHA)"
- name: Test
run: |
dotnet test --no-build -c Release -p:TestTfmsInParallel=false --verbosity normal