diff --git a/.github/workflows/line-count.yml b/.github/workflows/line-count.yml index 87ba313945..fafa970226 100644 --- a/.github/workflows/line-count.yml +++ b/.github/workflows/line-count.yml @@ -1,4 +1,4 @@ -name: Check Line Counts +name: Lines of Code on: [push, pull_request, workflow_dispatch] diff --git a/.github/workflows/lint-source.yml b/.github/workflows/lint-source.yml index 29e1716e24..d425d449b8 100644 --- a/.github/workflows/lint-source.yml +++ b/.github/workflows/lint-source.yml @@ -1,11 +1,26 @@ -name: Lint Source Code +name: Lint Source on: [push, pull_request, workflow_dispatch] jobs: - lint: - name: Lint Source Code - runs-on: macos-latest + file-changes: + name: Detect File Changes + runs-on: 'ubuntu-latest' + outputs: + checkall: ${{ steps.changes.outputs.checkall }} + steps: + - name: Clone + uses: actions/checkout@v4 + + - name: Detect Changes + uses: dorny/paths-filter@v3 + id: changes + with: + filters: ".github/file-filter.yml" + + lint-source: + name: Lint Source + runs-on: 'ubuntu-latest' steps: - uses: actions/checkout@v4 @@ -14,10 +29,4 @@ jobs: run: pip install fortitude-lint ansi2txt - name: Lint the source code - run: fortitude check --ignore=E001,S001,S101,M011,F001,S041,T001 ./src/*/* &> lint.txt || true - - - name: Sanitize - run: cat lint.txt | ansi2txt > lint2.txt - - - name: Output Summary - run: cat lint2.txt << EOF > $GITHUB_STEP_SUMMARY + run: fortitude check --ignore=E001,S001,S101,M011,F001,S041,T001 ./src/*/* || true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint-toolchain.yml similarity index 84% rename from .github/workflows/lint.yml rename to .github/workflows/lint-toolchain.yml index acb1025b6e..59f48378b6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint-toolchain.yml @@ -1,9 +1,9 @@ -name: Lint +name: Lint Toolchain on: [push, pull_request, workflow_dispatch] jobs: - docs: + lint-toolchain: name: Lint Toolchain runs-on: ubuntu-latest