Skip to content

Commit 6484022

Browse files
committed
New CI for test pass/fail and documentation completeness
1 parent a4ffd32 commit 6484022

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

.github/workflows/api-docs.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
name: API Documentation Check
3+
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
check-docs:
12+
13+
runs-on: windows-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v3
19+
with:
20+
dotnet-version: 6.0.x
21+
- name: Check API Documentation
22+
run: dotnet build SimpleDataGrid/SimpleDataGrid.csproj /p:WarningsAsErrors="CS1591;CS1573;CS1572;CS1570"

.github/workflows/tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
name: Run Tests
3+
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: windows-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v3
19+
with:
20+
dotnet-version: 6.0.x
21+
- name: Restore dependencies
22+
run: dotnet restore
23+
- name: Build
24+
run: dotnet build --no-restore
25+
- name: Test
26+
run: dotnet test --no-build --verbosity normal

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# <img src="https://github.com/DerekGooding/SimpleDataGrid/blob/main/Icon.png" width=50 height=50/> SimpleDataGrid
1+
# SimpleDataGrid
2+
3+
[![Build Status](https://github.com/dgooding/SimpleDataGrid/actions/workflows/tests.yml/badge.svg)](https://github.com/dgooding/SimpleDataGrid/actions/workflows/tests.yml)
4+
[![Open Issues](https://img.shields.io/github/issues/dgooding/SimpleDataGrid)](https://github.com/dgooding/SimpleDataGrid/issues)
5+
[![NuGet Version](https://img.shields.io/nuget/v/SimpleDataGrid)](https://www.nuget.org/packages/SimpleDataGrid/)
6+
[![API Docs](https://github.com/dgooding/SimpleDataGrid/actions/workflows/api-docs.yml/badge.svg)](https://github.com/dgooding/SimpleDataGrid/actions/workflows/api-docs.yml)
27

38
A simple DataGrid for WPF that supports pagination, filtering, and searching.
49

0 commit comments

Comments
 (0)