Files
Watermark.Net/.github/workflows/dotnet.yml
DESKTOP\Administrator 43ebb4c7fa Version code update
2026-05-13 02:34:11 +03:00

36 lines
740 B
YAML

name: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install fonts
run: |
sudo apt-get update
sudo apt-get install -y fontconfig
sudo apt-get install -y fonts-liberation
sudo fc-cache -f -v
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore UnitTest/UnitTest.csproj
- name: Build
run: dotnet build UnitTest/UnitTest.csproj --no-restore
- name: Test
run: dotnet test UnitTest/UnitTest.csproj --no-build --verbosity normal