1
+ name : ci
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request_target :
7
+ branches : [main]
8
+
9
+ env :
10
+ CARGO_TERM_COLOR : always
11
+
12
+ jobs :
13
+ test :
14
+ if : github.repository == 'cakevm/alloy-reth-provider'
15
+ name : make test
16
+ runs-on : ubuntu-latest
17
+ timeout-minutes : 20
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ with :
21
+ fetch-depth : 0
22
+ ref : ${{ github.event.pull_request.head.sha || github.ref }}
23
+ - uses : dtolnay/rust-toolchain@stable
24
+ - uses : Swatinem/rust-cache@v2
25
+ - run : make test
26
+
27
+ fmt :
28
+ if : github.repository == 'cakevm/alloy-reth-provider'
29
+ name : make fmt-check
30
+ runs-on : ubuntu-latest
31
+ timeout-minutes : 10
32
+ steps :
33
+ - uses : actions/checkout@v4
34
+ with :
35
+ fetch-depth : 0
36
+ ref : ${{ github.event.pull_request.head.sha || github.ref }}
37
+ - uses : dtolnay/rust-toolchain@stable
38
+ - run : make fmt-check
39
+
40
+ taplo :
41
+ if : github.repository == 'cakevm/alloy-reth-provider'
42
+ name : make taplo-check
43
+ runs-on : ubuntu-latest
44
+ timeout-minutes : 10
45
+ steps :
46
+ - uses : actions/checkout@v4
47
+ with :
48
+ fetch-depth : 0
49
+ ref : ${{ github.event.pull_request.head.sha || github.ref }}
50
+ - uses : dtolnay/rust-toolchain@stable
51
+ - name : Install taplo
52
+ env :
53
+ version : " 0.9.3"
54
+ run : |
55
+ curl -Ls "https://github.com/tamasfe/taplo/releases/download/${{ env.version }}/taplo-full-linux-x86_64.gz" | \
56
+ gzip -d > taplo && \
57
+ chmod +x taplo && \
58
+ sudo mv taplo /usr/local/bin/taplo
59
+ - run : make taplo-check
60
+
61
+ clippy :
62
+ if : github.repository == 'cakevm/alloy-reth-provider'
63
+ name : make clippy
64
+ runs-on : ubuntu-latest
65
+ timeout-minutes : 10
66
+ steps :
67
+ - uses : actions/checkout@v4
68
+ with :
69
+ fetch-depth : 0
70
+ ref : ${{ github.event.pull_request.head.sha || github.ref }}
71
+ - uses : dtolnay/rust-toolchain@stable
72
+ with :
73
+ components : clippy
74
+ - uses : Swatinem/rust-cache@v2
75
+ - run : make clippy
76
+
77
+ deny :
78
+ if : github.repository == 'cakevm/alloy-reth-provider'
79
+ name : cargo deny check
80
+ runs-on : ubuntu-latest
81
+ timeout-minutes : 10
82
+ steps :
83
+ - uses : actions/checkout@v4
84
+ with :
85
+ fetch-depth : 0
86
+ ref : ${{ github.event.pull_request.head.sha || github.ref }}
87
+ - uses : EmbarkStudios/cargo-deny-action@v1
88
+ with :
89
+ rust-version : " 1.84.0"
90
+ log-level : warn
91
+ command : check
92
+ arguments : --all-features
0 commit comments