File tree Expand file tree Collapse file tree 7 files changed +53
-17
lines changed Expand file tree Collapse file tree 7 files changed +53
-17
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ name: Go
2
2
3
3
on :
4
4
push :
5
- branches : [ main, ' release/**' ]
5
+ branches : [main, " release/**" ]
6
6
pull_request :
7
- branches : [ main, ' release/**' ]
7
+ branches : [main, " release/**" ]
8
8
workflow_dispatch :
9
9
10
10
jobs :
11
11
go_test_short :
12
12
env :
13
- 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)$'
13
+ 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)$"
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@v4
@@ -19,15 +19,16 @@ jobs:
19
19
with :
20
20
go-version : 1.21.4
21
21
- name : Run flaky tests sequentially
22
- run : | # Upstream flakes are race conditions exacerbated by concurrent tests
22
+ run :
23
+ | # Upstream flakes are race conditions exacerbated by concurrent tests
23
24
go list ./... | grep -P "${FLAKY_REGEX}" | xargs -n 1 go test -short;
24
25
- name : Run non-flaky tests concurrently
25
26
run : |
26
27
go test -short $(go list ./... | grep -Pv "${FLAKY_REGEX}");
27
-
28
+
28
29
go_generate :
29
30
env :
30
- EXCLUDE_REGEX : ' ava-labs/libevm/(accounts/usbwallet/trezor)$'
31
+ EXCLUDE_REGEX : " ava-labs/libevm/(accounts/usbwallet/trezor)$"
31
32
runs-on : ubuntu-latest
32
33
steps :
33
34
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ name: golangci-lint
2
2
3
3
on :
4
4
push :
5
- branches : [ main, ' release/**' ]
5
+ branches : [main, " release/**" ]
6
6
pull_request :
7
- branches : [ main, ' release/**' ]
7
+ branches : [main, " release/**" ]
8
8
workflow_dispatch :
9
9
10
10
permissions :
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ name: libevm delta
2
2
3
3
on :
4
4
push :
5
- branches : [ main, ' release/**' ]
5
+ branches : [main, " release/**" ]
6
6
pull_request :
7
- branches : [ main, ' release/**' ]
7
+ branches : [main, " release/**" ]
8
8
workflow_dispatch :
9
9
10
10
jobs :
18
18
with :
19
19
fetch-depth : 0 # everything
20
20
fetch-tags : true
21
-
21
+
22
22
- name : Color-blindness a11y
23
- run : | # https://davidmathlogic.com/colorblind/#%23D81B60-%231E88E5-%23FFC107-%23004D40:~:text=8%20pairs%20of%20contrasting%20colors
23
+ run :
24
+ | # https://davidmathlogic.com/colorblind/#%23D81B60-%231E88E5-%23FFC107-%23004D40:~:text=8%20pairs%20of%20contrasting%20colors
24
25
git config color.diff.old "#DC3220";
25
26
git config color.diff.new "#005AB5";
26
27
31
32
':(exclude).golangci.yml' \
32
33
':(exclude).github/**' \
33
34
':(exclude)README.md';
34
-
35
+
35
36
- name : git diff {LIBEVM_BASE}..main
36
37
run : |
37
38
git checkout main --;
Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
inputs :
6
6
source_commit :
7
- description : ' Upstream commit on which to base module renaming'
7
+ description : " Upstream commit on which to base module renaming"
8
8
required : true
9
9
type : string
10
- default : ' 2bd6bd01d2e8561dd7fc21b631f4a34ac16627a1'
10
+ default : " 2bd6bd01d2e8561dd7fc21b631f4a34ac16627a1"
11
11
12
12
jobs :
13
13
rename-module :
42
42
find . -type f | \
43
43
xargs grep -In github.com/ethereum/go-ethereum | \
44
44
grep -v "https://github.com/ethereum/go-ethereum"
45
-
45
+
46
46
- name : Set up Go
47
47
uses : actions/setup-go@v5
48
48
with :
Original file line number Diff line number Diff line change
1
+ name : YAML check
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [main]
6
+ paths :
7
+ - " **/*.yml"
8
+ - " **/*.yaml"
9
+ - " .github/workflows/yml.yml"
10
+ - " .github/yamllint.yml"
11
+
12
+ jobs :
13
+ yaml-check :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - name : Validate YAML files
18
+ run : yamllint -c .yamllint.yml .
Original file line number Diff line number Diff line change @@ -57,16 +57,19 @@ linters-settings:
57
57
- dot
58
58
- blank
59
59
goheader :
60
- values :
61
60
template-path : .libevm-header
62
61
63
62
gomodguard :
64
63
blocked :
65
64
modules :
66
65
- github.com/ethereum/go-ethereum :
66
+ reason : " Original, forked repo"
67
67
- github.com/ava-labs/avalanchego :
68
+ reason : " Avoid dependency loop"
68
69
- github.com/ava-labs/coreth :
70
+ reason : " Avoid dependency loop"
69
71
- github.com/ava-labs/subnet-evm :
72
+ reason : " Avoid dependency loop"
70
73
revive :
71
74
rules :
72
75
- name : unused-parameter
Original file line number Diff line number Diff line change
1
+ extends : default
2
+
3
+ rules :
4
+ document-start : disable
5
+ line-length : disable
6
+ comments :
7
+ min-spaces-from-content : 1
8
+ truthy :
9
+ check-keys : false
10
+ ignore :
11
+ # Upstream geth files that we don't want to modify unnecessarily.
12
+ - .travis.yml
13
+ - crypto/secp256k1/libsecp256k1/.travis.yml
You can’t perform that action at this time.
0 commit comments