mirror of
https://github.com/actions/runner.git
synced 2025-12-10 04:06:57 +00:00
* Update lint.yml Don't ignore the formatting errors * Add formatting made by @cory-miller * Use dotnet format * Format only modified files * Add instruction to contribute.md * Use git status instead of git diff
25 lines
572 B
YAML
25 lines
572 B
YAML
name: Lint
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
# Ensure full list of changed files within `super-linter`
|
|
fetch-depth: 0
|
|
- name: Run linters
|
|
uses: github/super-linter@v4
|
|
env:
|
|
DEFAULT_BRANCH: ${{ github.base_ref }}
|
|
EDITORCONFIG_FILE_NAME: .editorconfig
|
|
LINTER_RULES_PATH: /src/
|
|
VALIDATE_ALL_CODEBASE: false
|
|
VALIDATE_CSHARP: true
|