Skip to content

Commit

Permalink
Add clojure and c++ lints
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Jul 11, 2024
1 parent 10224c8 commit 357c5e5
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
- uses: docker/build-push-action@v4
with:
context: .
file: ".docker/lint/clj-lint.Dockerfile"
tags: clj-lint:latest
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
- uses: docker/build-push-action@v4
with:
context: .
file: ".docker/lint/cpp-lint.Dockerfile"
tags: cpp-lint:latest
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
- name: Run C lint
uses: addnab/docker-run-action@v3
with:
Expand All @@ -30,4 +48,16 @@ jobs:
--filter="-legal/copyright,-runtime/arrays,-readability/casting" .
scripts/run-clang-format.py \
--clang-format-executable=clang-format \
-r .; \
-r .;
- name: Run Clojure lint
uses: addnab/docker-run-action@v3
with:
image: clj-lint:latest
options: -v ${{ github.workspace }}:/code -e LINT_FIX=1
run: ./scripts/lint-clj.sh
- name: Run C++ lint
uses: addnab/docker-run-action@v3
with:
image: cpp-lint:latest
options: -v ${{ github.workspace }}:/code -e LINT_FIX=1
run: ./scripts/lint-clj.sh

0 comments on commit 357c5e5

Please sign in to comment.