Skip to content

Commit

Permalink
Add dart lint
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Jul 11, 2024
1 parent a30b481 commit d13d903
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
- uses: docker/build-push-action@v4
with:
context: .
file: ".docker/lint/dart-lint.Dockerfile"
tags: dart-lint:latest
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
- uses: docker/build-push-action@v4
with:
context: .
Expand Down Expand Up @@ -78,6 +87,13 @@ jobs:
scripts/run-clang-format.py \
--clang-format-executable=clang-format \
-r .;
- name: Run Dart lint
uses: addnab/docker-run-action@v3
with:
image: dart-lint:latest
options: -v ${{ github.workspace }}:/code -e LINT_FIX=1
run: |
./scripts/lint-dart.sh
- name: Run Python lint
uses: addnab/docker-run-action@v3
with:
Expand Down

0 comments on commit d13d903

Please sign in to comment.