BHP1-1545 sort worksheet header modules by results-order #80
This file contains hidden or 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: clj-kondo linter | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| clj-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get changed Clojure files | |
| id: changed-files | |
| run: | | |
| FILES=$(git diff --name-only --diff-filter=d origin/${{ github.base_ref }}...HEAD | grep -E '\.(clj|cljs|cljc)$' | tr '\n' ' ') | |
| echo "files=$FILES" >> $GITHUB_OUTPUT | |
| echo "has_files=$([ -n "$FILES" ] && echo 'true' || echo 'false')" >> $GITHUB_OUTPUT | |
| - name: Install clj-kondo | |
| if: steps.changed-files.outputs.has_files == 'true' | |
| run: | | |
| curl -sLO https://raw.githubusercontent.com/clj-kondo/clj-kondo/master/script/install-clj-kondo | |
| chmod +x install-clj-kondo | |
| ./install-clj-kondo | |
| - name: Build analysis cache | |
| if: steps.changed-files.outputs.has_files == 'true' | |
| run: clj-kondo --lint projects/ components/ bases/ || true | |
| - name: Lint changed files | |
| if: steps.changed-files.outputs.has_files == 'true' | |
| run: clj-kondo --lint ${{ steps.changed-files.outputs.files }} |