-
Notifications
You must be signed in to change notification settings - Fork 83
49 lines (40 loc) · 1.09 KB
/
Copy pathdotnet.yml
File metadata and controls
49 lines (40 loc) · 1.09 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
47
48
49
# https://github.com/actions/setup-dotnet
name: Build
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
paths-ignore:
- "**/*.md"
permissions:
contents: read
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
jobs:
build-and-test:
name: build-and-test-${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v7.0.0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v5.4.0
with:
global-json-file: global.json
- name: Restore dependencies
run: dotnet restore Shop.slnx
- name: Build
run: dotnet build Shop.slnx --nologo --no-restore --configuration Release
- name: Test
run: dotnet test Shop.slnx --nologo --no-build --no-restore --configuration Release --verbosity minimal