Skip to content

Commit

Permalink
add lint only for modified files
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-erojaslizano committed Apr 2, 2024
1 parent cb68731 commit bfba464
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ concurrency:
env:
DOTNET_VERSION: 6.0
DOTNET_LEGACY_VERSION: 4.7.1
# uncomment to run the tests sequentially
#SEQUENTIAL_ENV: SEQUENTIAL_TEST_RUN

jobs:
run-linter:
Expand All @@ -36,11 +34,16 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v43
- name: Run linters
uses: wearerequired/lint-action@v2
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
with:
dotnet_format_args: "--include ${{ALL_CHANGED_FILES}}"
dotnet_format: true
continue_on_error: false
github_token: ${{ secrets.GITHUB_TOKEN }}
check_name: ${linter} run
auto_fix: true
check_name: ${linter} run

0 comments on commit bfba464

Please sign in to comment.