Merge pull request #1 from DotNetExtension/dependabot/github_actions/… #15
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: Lint Code | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint-code: | |
name: Lint Code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Set up .NET | |
uses: zyactions/dotnet-setup@v1 | |
with: | |
global-json-file: global.json | |
- name: Restore .NET dependencies | |
uses: zyactions/dotnet-restore@v1 | |
- name: Lint solution | |
uses: zyactions/dotnet-lint@v1 |