Skip to content

Commit aba76da

Browse files
committed
fix: exclude trezor package protoc generate
1 parent 23f6d82 commit aba76da

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

.github/workflows/go.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,6 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
go_generate:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
- name: Set up Go
16-
uses: actions/setup-go@v5
17-
with:
18-
go-version: 1.21.4
19-
20-
- name: Run `go generate`
21-
run: go generate ./...
22-
23-
- name: git diff
24-
run: git diff --exit-code
25-
2611
go_test_short:
2712
env:
2813
FLAKY_REGEX: 'ava-labs/libevm/(triedb/pathdb|eth|eth/tracers/js|eth/tracers/logger|accounts/abi/bind|accounts/keystore|eth/downloader|miner|ethclient|ethclient/gethclient|eth/catalyst)$'
@@ -39,3 +24,20 @@ jobs:
3924
- name: Run non-flaky tests concurrently
4025
run: |
4126
go test -short $(go list ./... | grep -Pv "${FLAKY_REGEX}");
27+
28+
go_generate:
29+
env:
30+
EXCLUDE_REGEX: 'ava-labs/libevm/(accounts/usbwallet/trezor)$'
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- name: Set up Go
35+
uses: actions/setup-go@v5
36+
with:
37+
go-version: 1.21.4
38+
39+
- name: Run `go generate`
40+
run: go list ./... | grep -Pv "${EXCLUDE_REGEX}" | xargs go generate;
41+
42+
- name: git diff
43+
run: git diff --exit-code

0 commit comments

Comments
 (0)