diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml
index 3dba269a..88473239 100644
--- a/.github/workflows/action.yml
+++ b/.github/workflows/action.yml
@@ -1,6 +1,6 @@
name: "Main workflow"
-on: [push, pull_request]
+on: [pull_request]
jobs:
test:
@@ -42,6 +42,23 @@ jobs:
- name: test
run: dotnet test --configuration ${{ matrix.buildConfiguration }} --no-restore
+ check_code_format:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v2
+
+ - name: Add dotnet-format problem matcher
+ uses: xt0rted/dotnet-format-problem-matcher@v1
+
+ - name: Restore dotnet tools
+ uses: xt0rted/dotnet-tool-restore@v1
+
+ - name: Run dotnet format
+ uses: xt0rted/dotnet-format@v1
+ with:
+ only-changed-files: "true"
+
check_licenses:
runs-on: ubuntu-latest
strategy:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index bec60152..911e29b9 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -49,9 +49,11 @@ jobs:
run: dotnet pack ./src/NuGetUtility/NuGetUtility.csproj -c Release --no-build -o ./artifacts -p:Version=${{ steps.version.outputs.full_without_prefix }}
- name: Zip artifacts
- uses: tomchavakis/action-zip@v0.1.1
+ uses: thedoctor0/zip-release@0.7.5
with:
- args: zip -qq -r ./release.zip ./artifacts
+ type: 'zip'
+ filename: 'release.zip'
+ path: ./artifacts
- name: Release
uses: softprops/action-gh-release@v1
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 0477fdaa..00000000
--- a/Dockerfile
+++ /dev/null
@@ -1,16 +0,0 @@
-FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env
-WORKDIR /src
-
-
-COPY src/NugetUtility.csproj ./
-RUN dotnet restore
-
-
-COPY . ./
-RUN dotnet publish -f net6.0 -c Release -o out
-
-
-FROM mcr.microsoft.com/dotnet/runtime:6.0
-WORKDIR /src
-COPY --from=build-env /src/out .
-ENTRYPOINT ["dotnet", "NugetUtility.dll"]
\ No newline at end of file
diff --git a/README.md b/README.md
index b9ed9e02..ff107e73 100644
--- a/README.md
+++ b/README.md
@@ -1,26 +1,25 @@
-# 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)
+# Nuget License Utility
-A .net core tool to print the licenses of a project. This tool supports .NET Core and .NET Standard and .NET Framework
-Projects.
+A .net core tool to print and validate the licenses of a project. This tool supports .NET (Core), .NET Standard and .NET Framework Projects.
-## dotnet-project-licenses tool
+## nuget-license tool
### Install tool
```ps
-dotnet tool install --global dotnet-project-licenses
+dotnet tool install --global nuget-license
```
### Uninstall tool
```ps
-dotnet tool uninstall --global dotnet-project-licenses
+dotnet tool uninstall --global nuget-license
```
## Usage
-Usage: dotnet-project-licenses [options]
+Usage: nuget-license [options]
**Options:**
@@ -43,35 +42,17 @@ Usage: dotnet-project-licenses [options]
### Show help
```ps
-dotnet-project-licenses --help
+nuget-license --help
```
### Validate licenses for .csproj file
```ps
-dotnet-project-licenses -i project.csproj
+nuget-license -i project.csproj
```
### Generate machine readable output
```ps
-dotnet-project-licenses -i project.csproj -o jsonPretty
-```
-
-## Docker
-
-### Build the image
-
-```
-docker build . -t nuget-license
-```
-
-### Run the same example commands as above in docker
-
-```ps
-docker run -it -v projectPath:/tmp nuget-license --help
-```
-
-```ps
-docker run -it -v projectPath:/tmp nuget-license -i /tmp/project.csproj
-```
+nuget-license -i project.csproj -o jsonPretty
+```
\ No newline at end of file
diff --git a/src/NuGetUtility/NuGetUtility.csproj b/src/NuGetUtility/NuGetUtility.csproj
index 59382762..f95b7aff 100644
--- a/src/NuGetUtility/NuGetUtility.csproj
+++ b/src/NuGetUtility/NuGetUtility.csproj
@@ -8,12 +8,12 @@