Skip to content

Commit 9c34ff9

Browse files
committed
Introduce .NET 10 Preview workflow, add path-based triggers to workflows, and update solution file to include the new workflow.
1 parent 3f9462e commit 9c34ff9

File tree

5 files changed

+48
-1
lines changed

5 files changed

+48
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: .NET 10 Preview Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
net10-preview:
11+
name: .NET 10 Preview Hello World
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup .NET 10 Preview
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: '10.0.x'
22+
dotnet-quality: 'preview'
23+
24+
- name: Display .NET version
25+
run: dotnet --version
26+
27+
- name: List installed SDKs
28+
run: dotnet --list-sdks
29+
30+
- name: Display .NET info
31+
run: dotnet --info

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
tags:
66
- '*'
7+
paths:
8+
- 'src/NullOpsDevs.LibSsh/**'
9+
- 'src/NullOpsDevs.LibSsh.Test/**'
10+
- '**.csproj'
11+
- '**.sln'
712
workflow_dispatch:
813

914
jobs:

.github/workflows/test-dotnet-versions.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
branches:
66
- matrix-test
7+
paths:
8+
- 'src/**'
9+
- '**.csproj'
10+
- '**.sln'
11+
- '.github/workflows/test-dotnet-versions.yml'
712
workflow_dispatch:
813

914
jobs:

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ name: Test
22

33
on:
44
push:
5-
branches:
5+
branches:
66
- main
7+
paths:
8+
- 'src/**'
9+
- '**.csproj'
10+
- '**.sln'
11+
- '.github/workflows/test.yml'
712
workflow_dispatch:
813

914
jobs:

src/NullOpsDevs.LibSsh.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<File Path="../.github\workflows\publish.yml" />
55
<File Path="..\.github\workflows\docs-workflow.yml" />
66
<File Path="..\.github\workflows\test-dotnet-versions.yml" />
7+
<File Path="..\.github\workflows\net10-preview.yml" />
78
</Folder>
89
<Project Path="NullOpsDevs.Libssh.NuGetTest\NullOpsDevs.Libssh.NuGetTest.csproj" Type="Classic C#" />
910
<Project Path="NullOpsDevs.LibSsh.Test\NullOpsDevs.LibSsh.Test.csproj" Type="Classic C#" />

0 commit comments

Comments
 (0)