File tree Expand file tree Collapse file tree 5 files changed +35
-51
lines changed Expand file tree Collapse file tree 5 files changed +35
-51
lines changed Original file line number Diff line number Diff line change 1
1
name : " Main workflow"
2
2
3
- on : [push, pull_request]
3
+ on : [pull_request]
4
4
5
5
jobs :
6
6
test :
42
42
- name : test
43
43
run : dotnet test --configuration ${{ matrix.buildConfiguration }} --no-restore
44
44
45
+ check_code_format :
46
+ runs-on : ubuntu-latest
47
+ steps :
48
+ - name : Checkout repo
49
+ uses : actions/checkout@v2
50
+
51
+ - name : Add dotnet-format problem matcher
52
+ uses : xt0rted/dotnet-format-problem-matcher@v1
53
+
54
+ - name : Restore dotnet tools
55
+ uses : xt0rted/dotnet-tool-restore@v1
56
+
57
+ - name : Run dotnet format
58
+ uses : xt0rted/dotnet-format@v1
59
+ with :
60
+ only-changed-files : " true"
61
+
45
62
check_licenses :
46
63
runs-on : ubuntu-latest
47
64
strategy :
Original file line number Diff line number Diff line change 49
49
run : dotnet pack ./src/NuGetUtility/NuGetUtility.csproj -c Release --no-build -o ./artifacts -p:Version=${{ steps.version.outputs.full_without_prefix }}
50
50
51
51
- name : Zip artifacts
52
- uses : tomchavakis/action- zip@v0.1.1
52
+ uses : thedoctor0/ zip-release@0.7.5
53
53
with :
54
- args : zip -qq -r ./release.zip ./artifacts
54
+ type : ' zip'
55
+ filename : ' release.zip'
56
+ path : ./artifacts
55
57
56
58
- name : Release
57
59
uses : softprops/action-gh-release@v1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- # Nuget License Utility [ ![ Build Status ] ( https://travis-ci.com/tomchavakis/nuget-license.svg?branch=develop )] ( https://travis-ci.com/tomchavakis/nuget-license.svg?branch=develop ) [ ![ NuGet ] ( https://img.shields.io/nuget/v/dotnet-project-licenses.svg )] ( https://www.nuget.org/packages/dotnet-project-licenses )
1
+ # Nuget License Utility
2
2
3
- A .net core tool to print the licenses of a project. This tool supports .NET Core and .NET Standard and .NET Framework
4
- Projects.
3
+ A .net core tool to print and validate the licenses of a project. This tool supports .NET (Core), .NET Standard and .NET Framework Projects.
5
4
6
- ## dotnet-project-licenses tool
5
+ ## nuget-license tool
7
6
8
7
### Install tool
9
8
10
9
``` ps
11
- dotnet tool install --global dotnet-project-licenses
10
+ dotnet tool install --global nuget-license
12
11
13
12
```
14
13
15
14
### Uninstall tool
16
15
17
16
``` ps
18
- dotnet tool uninstall --global dotnet-project-licenses
17
+ dotnet tool uninstall --global nuget-license
19
18
```
20
19
21
20
## Usage
22
21
23
- Usage: dotnet-project-licenses [ options]
22
+ Usage: nuget-license [ options]
24
23
25
24
** Options:**
26
25
@@ -43,35 +42,17 @@ Usage: dotnet-project-licenses [options]
43
42
### Show help
44
43
45
44
``` ps
46
- dotnet-project-licenses --help
45
+ nuget-license --help
47
46
```
48
47
49
48
### Validate licenses for .csproj file
50
49
51
50
``` ps
52
- dotnet-project-licenses -i project.csproj
51
+ nuget-license -i project.csproj
53
52
```
54
53
55
54
### Generate machine readable output
56
55
57
56
``` ps
58
- dotnet-project-licenses -i project.csproj -o jsonPretty
59
- ```
60
-
61
- ## Docker
62
-
63
- ### Build the image
64
-
65
- ```
66
- docker build . -t nuget-license
67
- ```
68
-
69
- ### Run the same example commands as above in docker
70
-
71
- ``` ps
72
- docker run -it -v projectPath:/tmp nuget-license --help
73
- ```
74
-
75
- ``` ps
76
- docker run -it -v projectPath:/tmp nuget-license -i /tmp/project.csproj
77
- ```
57
+ nuget-license -i project.csproj -o jsonPretty
58
+ ```
Original file line number Diff line number Diff line change 8
8
<PackageType >DotnetTool</PackageType >
9
9
<RepositoryType >git</RepositoryType >
10
10
<Version >100.100.100</Version >
11
- <PackageId >dotnet-project-licenses </PackageId >
12
- <ToolCommandName >dotnet-project-licenses </ToolCommandName >
11
+ <PackageId >nuget-license </PackageId >
12
+ <ToolCommandName >nuget-license </ToolCommandName >
13
13
<Authors >Tom Chavakis,Simon Ensslen</Authors >
14
14
<Company >-</Company >
15
15
<Title >.NET Core Tool to print and validate the licenses of dotnet project(s)</Title >
16
- <PackageProjectUrl >https://github.com/tomchavakis /nuget-license</PackageProjectUrl >
16
+ <PackageProjectUrl >https://github.com/sensslen /nuget-license</PackageProjectUrl >
17
17
<PackageLicenseExpression >Apache-2.0</PackageLicenseExpression >
18
18
<GeneratePackageOnBuild Condition =" '$(GeneratePackageOnBuild)' == ''" >false</GeneratePackageOnBuild >
19
19
<ProduceReferenceAssembly >false</ProduceReferenceAssembly >
You can’t perform that action at this time.
0 commit comments