File tree Expand file tree Collapse file tree 5 files changed +24
-18
lines changed Expand file tree Collapse file tree 5 files changed +24
-18
lines changed Original file line number Diff line number Diff line change 14
14
- ' [0-9]+.[0-9]+'
15
15
- ' [0-9]+.x'
16
16
17
+ env :
18
+ NUGET_PACKAGES : ${{ github.workspace }}/.nuget/packages
19
+
17
20
jobs :
18
21
integration-tests :
19
22
name : Tests
34
37
' 8.9.0-SNAPSHOT' ,
35
38
' latest-8'
36
39
]
37
-
40
+
38
41
steps :
39
42
- name : Checkout
40
43
uses : actions/checkout@v3
43
46
dotnet-version : ' 8.0.100'
44
47
- uses : actions/cache@v3
45
48
with :
46
- path : ~ /.nuget/packages
47
- key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json ') }}
49
+ path : ${{ github.workspace }} /.nuget/packages
50
+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj* ') }}
48
51
restore-keys : |
49
52
${{ runner.os }}-nuget-
50
53
- uses : actions/cache@v3
53
56
key : ${{ runner.os }}-elastic-managed-${{ matrix.stack_version }}
54
57
restore-keys : |
55
58
${{ runner.os }}-elastic-managed-
56
-
59
+
57
60
- run : " ./build.sh integrate ${{ matrix.stack_version }} random:test_only_one --report"
58
61
name : ${{ matrix.stack_version }}
59
62
- name : Results ${{ matrix.stack_version }}
66
69
fail_on_failure : true
67
70
require_tests : true
68
71
check_name : ${{ matrix.stack_version }}
69
-
72
+
Original file line number Diff line number Diff line change 15
15
- ' [0-9]+.[0-9]+'
16
16
- ' [0-9]+.x'
17
17
18
+ env :
19
+ NUGET_PACKAGES : ${{ github.workspace }}/.nuget/packages
20
+
18
21
jobs :
19
22
unit-tests :
20
23
name : Documentation
@@ -27,14 +30,14 @@ jobs:
27
30
dotnet-version : ' 8.0.100'
28
31
- uses : actions/cache@v3
29
32
with :
30
- path : ~ /.nuget/packages
31
- key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json ') }}
33
+ path : ${{ github.workspace }} /.nuget/packages
34
+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj* ') }}
32
35
restore-keys : |
33
36
${{ runner.os }}-nuget-
34
37
35
38
- run : ./build.sh documentation
36
39
name : Build docs
37
-
40
+
38
41
- run : |
39
42
if [ -n "$(git status --porcelain)" ]; then echo Error: changes found after running documentation; git diff; git status; exit 1; fi
40
43
name: 'Ensure no stale docs'
Original file line number Diff line number Diff line change 14
14
- ' [0-9]+.[0-9]+'
15
15
- ' [0-9]+.x'
16
16
17
+ env :
18
+ NUGET_PACKAGES : ${{ github.workspace }}/.nuget/packages
19
+
17
20
jobs :
18
21
unit-tests :
19
22
name : Unit
26
29
dotnet-version : ' 8.0.100'
27
30
- uses : actions/cache@v3
28
31
with :
29
- path : ~ /.nuget/packages
30
- key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json ') }}
32
+ path : ${{ github.workspace }} /.nuget/packages
33
+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj* ') }}
31
34
restore-keys : |
32
35
${{ runner.os }}-nuget-
33
36
42
45
fail_on_failure : true
43
46
require_tests : true
44
47
check_name : Unit Test Results
45
-
48
+
46
49
# Packages nuget packages first and then uses the nuget packages to test
47
50
# Also builds versioned nuget packages
48
51
canary-tests :
56
59
dotnet-version : ' 8.0.100'
57
60
- uses : actions/cache@v3
58
61
with :
59
- path : ~ /.nuget/packages
60
- key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json ') }}
62
+ path : ${{ github.workspace }} /.nuget/packages
63
+ key : ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj* ') }}
61
64
restore-keys : |
62
65
${{ runner.os }}-nuget-
63
66
72
75
fail_on_failure : true
73
76
require_tests : true
74
77
check_name : Canary Test Results
75
-
78
+
76
79
# Github packages requires authentication, this is likely going away in the future so for now we publish to feedz.io
77
80
# Only runs on builds on heads
78
81
- run : dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.FEEDZ_IO_API_KEY}} -s https://f.feedz.io/elastic/all/nuget/index.json --skip-duplicate --no-symbols
Original file line number Diff line number Diff line change 15
15
<FileVersion >$(CurrentAssemblyFileVersion)</FileVersion >
16
16
<TreatWarningsAsErrors >true</TreatWarningsAsErrors >
17
17
<MajorVersion >$(Version.Split('.')[0])</MajorVersion >
18
- <SolutionRoot >$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.sh))</SolutionRoot >
19
- <ArtifactsPath >$(MSBuildThisFileDirectory).artifacts</ArtifactsPath >
20
18
</PropertyGroup >
21
19
22
20
<!-- Common Nuget metadata-->
35
33
<TreatWarningsAsErrors >true</TreatWarningsAsErrors >
36
34
<IsPackable >false</IsPackable >
37
35
<EnablePackageValidation >true</EnablePackageValidation >
38
- <OutputPath Condition =" '$(OutputPathBaseDir)' != ''" >$(OutputPathBaseDir)\$(MSBuildProjectName)\</OutputPath >
39
36
<SolutionRoot >$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.bat))</SolutionRoot >
37
+ <ArtifactsPath >$(MSBuildThisFileDirectory).artifacts</ArtifactsPath >
40
38
41
39
<DefineConstants Condition =" '$(TargetFramework)'=='net461' or '$(TargetFramework)'=='net472'" >$(DefineConstants);FULLFRAMEWORK</DefineConstants >
42
40
<DefineConstants Condition =" $(DefineConstants.Contains(FULLFRAMEWORK)) == False" >$(DefineConstants);DOTNETCORE</DefineConstants >
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ module Build =
27
27
" CurrentVersion" , ( version.Full.ToString());
28
28
" CurrentAssemblyVersion" , ( version.Assembly.ToString());
29
29
" CurrentAssemblyFileVersion" , ( version.AssemblyFile.ToString());
30
- " ContinuousIntegrationBuild" , " true" ;
31
30
]
32
31
|> List.map ( fun ( p , v ) -> sprintf " %s =%s " p v)
33
32
|> String.concat " ;"
You can’t perform that action at this time.
0 commit comments