updated the lint.yml file to fix the bug in it #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C# Lint | |
on: | |
push: | |
branches: | |
- main | |
- test | |
pull_request: | |
branches: | |
- main | |
- test | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: "8.x" | |
- name: Install dependencies | |
run: dotnet restore api/api.csproj | |
- name: Run StyleCop linting | |
run: dotnet build --project api /warnaserror /p:TreatWarningsAsErrors=true |