Skip to content

Commit

Permalink
erigon-lib CI lint steps
Browse files Browse the repository at this point in the history
  • Loading branch information
battlmonstr committed Sep 19, 2023
1 parent 22f5f1f commit d590273
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,24 @@ jobs:
echo >&2 "Reproducible build broken"; cat erigon1.sha256; cat erigon2.sha256; exit 1
fi
- name: Lint
- name: Install golangci-lint
if: runner.os == 'Linux'
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
args: --help

- name: Lint erigon
if: runner.os == 'Linux'
run: golangci-lint run --config ./.golangci.yml

- name: Lint erigon-lib
if: runner.os == 'Linux'
run: cd erigon-lib && golangci-lint run --config ./.golangci.yml

- name: Lint source code licenses
if: runner.os == 'Linux'
run: cd erigon-lib && make lint-licenses-deps lint-licenses

- name: Test
run: make test
Expand Down

0 comments on commit d590273

Please sign in to comment.