Skip to content

BHP1-1545 sort worksheet header modules by results-order #80

BHP1-1545 sort worksheet header modules by results-order

BHP1-1545 sort worksheet header modules by results-order #80

Workflow file for this run

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 }}