File tree Expand file tree Collapse file tree 2 files changed +43
-2
lines changed
src/Sotsera.Sources.Common Expand file tree Collapse file tree 2 files changed +43
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Continuous Integration
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+
7
+ jobs :
8
+ build :
9
+ name : Continuous Integration
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ with :
15
+ fetch-depth : 0
16
+ filter : tree:0
17
+
18
+ - name : Set up .NET Core (version from global.json)
19
+ uses : actions/setup-dotnet@v4
20
+ with :
21
+ global-json-file : global.json
22
+
23
+ - name : dotnet build sources
24
+ run : dotnet build src/Sotsera.Sources.Common/Sotsera.Sources.Common.csproj --configuration Release
25
+
26
+ - name : dotnet test
27
+ run : dotnet test --configuration Release
28
+
29
+ - uses : actions/upload-artifact@v4
30
+ with :
31
+ name : artifact
32
+ path : artifacts/
Original file line number Diff line number Diff line change 3
3
<PropertyGroup >
4
4
<GenerateDocumentationFile >true</GenerateDocumentationFile >
5
5
6
- <Version >0.0.0-local</Version >
6
+ <Version Condition =" '$(IsContinuousIntegrationBuild)' != 'true'" >0.0.0-local</Version >
7
+ <MinVerSkip Condition =" '$(IsContinuousIntegrationBuild)' != 'true'" >true</MinVerSkip >
8
+ <MinVerTagPrefix >v</MinVerTagPrefix >
7
9
8
10
<Authors >Alessandro Ghidini</Authors >
9
11
<Company >Sotsera</Company >
30
32
<TargetsForTfmSpecificContentInPackage >$(TargetsForTfmSpecificContentInPackage);CustomContentTarget</TargetsForTfmSpecificContentInPackage >
31
33
</PropertyGroup >
32
34
33
- <ItemGroup Condition = " '$(IsContinuousIntegrationBuild)' == 'true' " >
35
+ <ItemGroup >
34
36
<PackageReference Include =" MinVer" >
35
37
<PrivateAssets >all</PrivateAssets >
36
38
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
37
39
</PackageReference >
38
40
</ItemGroup >
39
41
42
+ <Target Name =" MyTarget" AfterTargets =" MinVer" >
43
+ <PropertyGroup >
44
+ <GITHUB_RUN_NUMBER Condition =" '$(GITHUB_RUN_NUMBER)' == ''" >0</GITHUB_RUN_NUMBER >
45
+ <FileVersion >$(MinVerMajor).$(MinVerMinor).$(MinVerPatch).$(GITHUB_RUN_NUMBER)</FileVersion >
46
+ </PropertyGroup >
47
+ </Target >
48
+
40
49
<ItemGroup >
41
50
<None Include =" ../../Readme.md;../../icon.png" Pack =" true" PackagePath =" /" Visible =" false" />
42
51
<None Include =" Sotsera.Sources.Common.props" Pack =" true" PackagePath =" build/" Visible =" true" Action =" Compile" />
You can’t perform that action at this time.
0 commit comments