Skip to content

Commit c5635f4

Browse files
authored
Merge pull request #39 from stesee/GitConfigExperiment
Git config experiment
2 parents fd16b5a + 31ddc9f commit c5635f4

File tree

5 files changed

+78
-41
lines changed

5 files changed

+78
-41
lines changed

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"cSpell.words": [
3+
"Codacy",
4+
"Codeuctivity",
5+
"Nuget",
6+
"Nunit",
7+
"Rasterized",
8+
"Rgba",
9+
"nupkg",
10+
"snupkg"
11+
],
12+
"editor.formatOnSave": true
13+
}

.vscode/tasks.json

Lines changed: 50 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,52 @@
11
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"label": "build",
6-
"command": "dotnet",
7-
"type": "process",
8-
"args": [
9-
"build",
10-
"${workspaceFolder}/GithubActionsHelloWorld.csproj",
11-
"/property:GenerateFullPaths=true",
12-
"/consoleloggerparameters:NoSummary"
13-
],
14-
"problemMatcher": "$msCompile"
15-
},
16-
{
17-
"label": "publish",
18-
"command": "dotnet",
19-
"type": "process",
20-
"args": [
21-
"publish",
22-
"${workspaceFolder}/GithubActionsHelloWorld.csproj",
23-
"/property:GenerateFullPaths=true",
24-
"/consoleloggerparameters:NoSummary"
25-
],
26-
"problemMatcher": "$msCompile"
27-
},
28-
{
29-
"label": "watch",
30-
"command": "dotnet",
31-
"type": "process",
32-
"args": [
33-
"watch",
34-
"run",
35-
"${workspaceFolder}/GithubActionsHelloWorld.csproj",
36-
"/property:GenerateFullPaths=true",
37-
"/consoleloggerparameters:NoSummary"
38-
],
39-
"problemMatcher": "$msCompile"
40-
}
41-
]
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/GithubActionsHelloWorld.csproj",
11+
"/property:GenerateFullPaths=true",
12+
"/consoleloggerparameters:NoSummary"
13+
],
14+
"problemMatcher": "$msCompile"
15+
},
16+
{
17+
"label": "publish",
18+
"command": "dotnet",
19+
"type": "process",
20+
"args": [
21+
"publish",
22+
"${workspaceFolder}/GithubActionsHelloWorld.csproj",
23+
"/property:GenerateFullPaths=true",
24+
"/consoleloggerparameters:NoSummary"
25+
],
26+
"problemMatcher": "$msCompile"
27+
},
28+
{
29+
"label": "watch",
30+
"command": "dotnet",
31+
"type": "process",
32+
"args": [
33+
"watch",
34+
"run",
35+
"${workspaceFolder}/GithubActionsHelloWorld.csproj",
36+
"/property:GenerateFullPaths=true",
37+
"/consoleloggerparameters:NoSummary"
38+
],
39+
"problemMatcher": "$msCompile"
40+
},
41+
{
42+
"label": "update nuget",
43+
"command": "${workspaceFolder}/.vscode/updateNuget.sh",
44+
"args": [],
45+
"group": "build",
46+
"presentation": {
47+
"reveal": "always"
48+
},
49+
"problemMatcher": "$msCompile"
50+
}
51+
]
4252
}

.vscode/updateNuget.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
regex='PackageReference Include="([^"]*)" Version="([^"]*)"'
3+
find . -name "*.*proj" | while read proj; do
4+
while read line; do
5+
if [[ $line =~ $regex ]]; then
6+
name="${BASH_REMATCH[1]}"
7+
version="${BASH_REMATCH[2]}"
8+
if [[ $version != *-* ]]; then
9+
dotnet add "$proj" package "$name"
10+
fi
11+
fi
12+
done <"$proj"
13+
done

GithubActionsHelloWorldTests/GithubActionsHelloWorldTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
1111
<PackageReference Include="xunit" Version="2.9.2" />
1212
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
1313
<PrivateAssets>all</PrivateAssets>

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# GithubActionsHelloWorld
22

33
[![.NET](https://github.com/stesee/GithubActionsHelloWorld/actions/workflows/dotnet.yml/badge.svg)](https://github.com/stesee/GithubActionsHelloWorld/actions/workflows/dotnet.yml)
4+
[![NuGet](https://img.shields.io/badge/nuget-GithubActionsHelloWorld-blue)](https://int.nugettest.org/packages/GithubActionsHelloWorld)
45

56
Hello world built with github action.

0 commit comments

Comments
 (0)