mirror of
https://github.com/Geckon01/Watermark.Net.git
synced 2026-06-11 00:53:22 +03:00
36 lines
740 B
YAML
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
|