Skip to content

Commit e7f9f7b

Browse files
committed
Linters have own CI test
1 parent 6e82e6c commit e7f9f7b

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,19 @@ jobs:
375375
- name: Check coverage against baseline
376376
run: ./coverage-check
377377

378+
# Run unit tests for the custom Go linters
379+
linter-tests:
380+
runs-on: ubuntu-24.04
381+
steps:
382+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
383+
with:
384+
persist-credentials: false
385+
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
386+
with:
387+
go-version: "1.25.10"
388+
- name: Run custom linter tests
389+
run: make -C linters test
390+
378391
# Run Rust lints and tests
379392
rust-lint-and-tests:
380393
runs-on: ubuntu-24.04

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,11 @@ $(BIN)/guardiand: dirs generate
5353
github.com/certusone/wormhole/node
5454

5555
.PHONY: test-coverage
56-
## Run tests with coverage for node, sdk, and the custom linters (matches CI)
56+
## Run tests with coverage for node, and sdk
5757
test-coverage:
58-
@echo "Running tests with coverage for node, sdk, and linters..."
58+
@echo "Running tests with coverage for node, and sdk..."
5959
@set -o pipefail && (cd node && go test -count=1 -v -timeout 5m -race -cover ./...) 2>&1 | tee coverage.txt
6060
@set -o pipefail && (cd sdk && go test -count=1 -v -timeout 5m -race -cover ./...) 2>&1 | tee -a coverage.txt
61-
@for mod in $$(find linters -name go.mod); do \
62-
set -o pipefail && (cd $$(dirname $$mod) && go test -count=1 -v -timeout 5m -race -cover ./...) 2>&1 | tee -a coverage.txt || exit $$?; \
63-
done
6461

6562
.PHONY: test-fast
6663
## Run fast tests for node and sdk, skipping tests gated by testing.Short() and fuzz smoke tests

0 commit comments

Comments
 (0)