Skip to content

Commit 97d768d

Browse files
committed
Add GitHub Actions workflow for .NET testing on pull requests
1 parent cd342a2 commit 97d768d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
name: Dotnet Testing
3+
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
types: [opened, synchronize, reopened, ready_for_review]
8+
branches: [ core ]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v5
16+
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v5
19+
with:
20+
dotnet-version: '9.x'
21+
22+
- name: Restore dependencies
23+
run: dotnet restore CodeOfChaos.CliArgsParser.sln
24+
25+
- name: Build
26+
run: dotnet build CodeOfChaos.CliArgsParser.sln --configuration Release --no-restore -p:GeneratePackageOnBuild=false -p:IsPackable=false
27+
28+
- name: Run tests
29+
run: dotnet test CodeOfChaos.CliArgsParser.sln --configuration Release --no-restore --no-build

0 commit comments

Comments
 (0)