@@ -3,74 +3,74 @@ name: Build and Test
33on :
44 push :
55 branches :
6- - master
6+ - master
77 pull_request :
88 branches :
9- - master
9+ - master
1010
1111jobs :
12-
1312 build :
1413 name : Build OpenNLP.NET (Windows)
1514 runs-on : windows-latest
1615 steps :
17- - uses : actions/checkout@v1
18- - name : Setup .NET 3.1 SDK
19- uses : actions/setup-dotnet@v2
20- with :
21- dotnet-version : 3.1.x
22- - name : Setup .NET 6.0 SDK
23- uses : actions/setup-dotnet@v2
24- with :
25- dotnet-version : 6.0.x
26- - name : Install local tools
27- run : dotnet tool restore
28- - name : Paket Restore
29- run : dotnet paket restore
30- - name : Build Tests and Binaries
31- run : dotnet fake run build.fsx -t "BuildTests"
32- - name : Upload NuGet Packages
33- uses : actions/upload-artifact@v3
34- with :
35- name : nuget
36- path : bin/*.nupkg
37- - name : Upload Tests
38- uses : actions/upload-artifact@v3
39- with :
40- name : tests
41- path : tests
42-
16+ - uses : actions/checkout@v1
17+ - name : Setup .NET 3.1 SDK
18+ uses : actions/setup-dotnet@v2
19+ with :
20+ dotnet-version : 3.1.x
21+ - name : Setup .NET 6.0 SDK
22+ uses : actions/setup-dotnet@v2
23+ with :
24+ dotnet-version : 6.0.x
25+ - name : Install local tools
26+ run : dotnet tool restore
27+ - name : Paket Restore
28+ run : dotnet paket restore
29+ - name : Build Tests and Binaries
30+ run : dotnet fake run build.fsx -t "BuildTests"
31+ - name : Upload NuGet Packages
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : nuget
35+ path : bin/*.nupkg
36+ - name : Upload Tests
37+ uses : actions/upload-artifact@v4
38+ with :
39+ name : tests
40+ path : tests
41+
4342 test :
4443 strategy :
4544 fail-fast : false
4645 matrix :
47- os : [windows-latest, ubuntu-latest ]
46+ os : [windows-latest, ubuntu-22.04 ]
4847 runs-on : ${{ matrix.os }}
4948 needs :
50- - build
49+ - build
5150 steps :
52- - uses : actions/checkout@v1
53- - name : Setup .NET 3.1 SDK
54- uses : actions/setup-dotnet@v2
55- with :
56- dotnet-version : 3.1.x
57- - name : Setup .NET 6.0 SDK
58- uses : actions/setup-dotnet@v2
59- with :
60- dotnet-version : 6.0.x
61- - name : Download OpenNLP.NET Tests
62- uses : actions/download-artifact@v3
63- with :
64- name : tests
65- path : tests
66- - name : Install local tools
67- run : dotnet tool restore
68- - name : Paket Restore
69- run : dotnet paket restore
70- - name : Run Tests
71- run : dotnet fake run build.fsx -t "RunTests" --single-target
72- - name : Upload Test Results
73- uses : actions/upload-artifact@v3
74- with :
75- name : TestResults-${{ matrix.os }}
76- path : TestResults
51+ - uses : actions/checkout@v1
52+ - name : Setup .NET 3.1 SDK
53+ uses : actions/setup-dotnet@v2
54+ with :
55+ dotnet-version : 3.1.x
56+ - name : Setup .NET 6.0 SDK
57+ uses : actions/setup-dotnet@v2
58+ with :
59+ dotnet-version : 6.0.x
60+ - name : Download OpenNLP.NET Tests
61+ uses : actions/download-artifact@v4
62+ with :
63+ name : tests
64+ path : tests
65+ - name : Install local tools
66+ run : dotnet tool restore
67+ - name : Paket Restore
68+ run : dotnet paket restore
69+ - name : Run Tests
70+ run : dotnet fake run build.fsx -t "RunTests" --single-target
71+ - name : Upload Test Results
72+ uses : actions/upload-artifact@v4
73+ with :
74+ name : TestResults-${{ matrix.os }}
75+ path : TestResults
76+
0 commit comments