mirror of
https://github.com/ZoneTree/ZoneTree.git
synced 2026-10-17 05:21:21 +08:00
38 lines
856 B
YAML
38 lines
856 B
YAML
name: Build and Test
|
|
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
paths-ignore:
|
|
- '*.md'
|
|
pull_request:
|
|
branches: ['main']
|
|
paths-ignore:
|
|
- '*.md'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v5
|
|
with:
|
|
dotnet-version: |
|
|
10.0.x
|
|
9.0.x
|
|
8.0.x
|
|
7.0.x
|
|
6.0.x
|
|
- name: Display dotnet version
|
|
run: dotnet --version
|
|
- name: Restore dependencies
|
|
working-directory: ./src
|
|
run: dotnet restore
|
|
- name: Build
|
|
run: dotnet build --configuration Release --no-restore
|
|
working-directory: ./src
|
|
- name: Test
|
|
run: dotnet test --no-build --configuration Release --verbosity normal
|
|
working-directory: ./src
|