-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (25 loc) · 768 Bytes
/
Copy pathci.yml
File metadata and controls
34 lines (25 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CI
on:
push:
branches: ["main"]
pull_request:
permissions:
contents: read
jobs:
build-and-test:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: "8.0.x"
- name: Restore
run: dotnet restore .\KeyboardMonitor.csproj
- name: Build
run: dotnet build .\KeyboardMonitor.csproj -c Release --no-restore
- name: Run regression tests
run: dotnet run --project .\tests\KeyboardMonitor.Tests\KeyboardMonitor.Tests.csproj -c Release
- name: Verify formatting
run: dotnet format .\KeyboardMonitor.csproj whitespace --verify-no-changes --no-restore