Skip to content

Commit fd83ca5

Browse files
committed
Initial commit
0 parents  commit fd83ca5

19 files changed

+7124
-0
lines changed

.github/workflows/ci.yml

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
debug/
4+
target/
5+
6+
# These are backup files generated by rustfmt
7+
**/*.rs.bk
8+
9+
# MSVC Windows builds of rustc generate these, which store debugging information
10+
*.pdb
11+
12+
# IDE files
13+
.idea
14+
.vscode

.pre-commit-config.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# See https://pre-commit.com for more information
2+
repos:
3+
- repo: local
4+
hooks:
5+
- id: make-fmt
6+
name: make-fmt
7+
language: system
8+
entry: make fmt
9+
pass_filenames: false
10+
- id: make-taplo
11+
name: make-taplo
12+
language: system
13+
entry: make taplo
14+
pass_filenames: false

0 commit comments

Comments
 (0)