mirror of
https://github.com/ZoneTree/ZoneTree.git
synced 2026-10-21 08:20:48 +08:00
36 lines
733 B
YAML
36 lines
733 B
YAML
name: .NET
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
paths-ignore:
|
|
- '*.md'
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
paths-ignore:
|
|
- '*.md'
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v2
|
|
with:
|
|
dotnet-version: 6.0.x
|
|
- name: Restore dependencies
|
|
working-directory: ./src
|
|
run: dotnet restore
|
|
- name: Build
|
|
run: dotnet build --no-restore
|
|
working-directory: ./src
|
|
- name: Test
|
|
run: dotnet test --no-build --verbosity normal
|
|
working-directory: ./src
|
|
- name: Pack
|
|
run: dotnet pack ZoneTree/ZoneTree.csproj -c Release
|
|
working-directory: ./src
|