Files
CleanShop/.github/workflows/dotnet.yml
T
2024-12-11 16:42:44 -03:00

45 lines
1.0 KiB
YAML

# https://github.com/actions/setup-dotnet
name: Build
on:
push:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
paths-ignore:
- "README.md"
- ".github/workflows/**.yml"
- "docs/**"
- "**/*.md"
- "**/*.yml"
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 }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "9.0.x"
- name: Restore dependencies
run: dotnet restore Shop.sln
- name: Build
run: dotnet build Shop.sln --nologo --no-restore --configuration Release
- name: Test
run: dotnet test Shop.sln --nologo --no-build --no-restore --configuration Release --verbosity minimal