Skip to content

Commit

Permalink
add lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza committed Dec 25, 2024
1 parent 9573619 commit 08ed644
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,29 @@ on:
paths-ignore:
- '**/**.md'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0
- name: Install dependencies
run: dotnet restore
- name: Run linting
run: dotnet build --no-restore --configuration Release /warnaserror
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
- name: Save linting logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: stylecop-lint-log
path: lint-output.log
check-dotnet:
strategy:
matrix:
Expand Down
4 changes: 4 additions & 0 deletions Parse/Parse.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<PackageReference Include="OpenCover" Version="4.7.1221" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<None Remove="parse-logo.png" />
<None Include="parse-logo.png">
Expand Down

0 comments on commit 08ed644

Please sign in to comment.