Skip to content

Commit 4ad7787

Browse files
author
Aleksandr Petrakov
committed
feat: add running script to ci to run tests for all .NET versions
1 parent a9e8be9 commit 4ad7787

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/tests_workflow.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,24 @@ name: .NET
22

33
on:
44
push:
5+
branches: [develop, master]
6+
pull_request:
7+
branches: [develop, master]
58

69
jobs:
710
tests:
811
name: Run tests
9-
runs-on: "ubuntu-latest"
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
dotnet-version: ["3.1.x", "5.0.x", "6.0.x", "7.0.x", "8.0.x", "9.0.x"]
17+
1018
steps:
11-
- uses: actions/checkout@master
12-
- uses: actions/setup-dotnet@v1
19+
- uses: actions/checkout@v4
20+
- name: Setup .NET ${{ matrix.dotnet-version }}
21+
uses: actions/setup-dotnet@v4
1322
with:
14-
dotnet-version: "9.0"
15-
- run: |
16-
dotnet restore ./Examples/Tests/Tests.csproj
17-
dotnet test ./Examples/Tests/Tests.csproj --verbosity normal
23+
dotnet-version: ${{ matrix.dotnet-version }}
24+
- run: dotnet restore ./Examples/Tests/Tests.csproj
25+
- run: dotnet test ./Examples/Tests/Tests.csproj --verbosity normal

0 commit comments

Comments
 (0)