Skip to content

Commit a4bcc78

Browse files
committed
add PR ci
1 parent f405132 commit a4bcc78

3 files changed

Lines changed: 28 additions & 4 deletions

File tree

.github/workflows/pr-ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: pr-ci
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
pr-ci:
10+
name: pr-ci
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-dotnet@v4
16+
17+
- name: Restore NuGet packages
18+
run: dotnet restore
19+
20+
- name: Build
21+
run: dotnet build --no-restore
22+
23+
- name: Run Tests
24+
run: dotnet test --no-build --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
25+
26+
- name: Check Analyzers
27+
run: dotnet format --verify-no-changes --verbosity diagnostic

.github/workflows/run-ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
pull_request:
8-
branches:
9-
- master
107

118
jobs:
129
ci:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# 7.0.0
22
- Removed Nuke
33
- Updated to .NET 8
4-
- Fixed sonarcloud
4+
- Fixed sonarcloud. Now only run on master pushes, on PRs we only run dotnet test and format
55
- Removed old azure devops pipelines
66
- Pipelines now fully written in github actions
77
- Updated dependencies

0 commit comments

Comments
 (0)