Skip to content

Commit 80641a1

Browse files
authored
Merge pull request #1 from datachainlab/feature/v0.1.0
Feature/v0.1.0
2 parents 843674a + a805452 commit 80641a1

File tree

22 files changed

+7807
-2
lines changed

22 files changed

+7807
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
#pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
lint:
12+
name: lint
13+
timeout-minutes: 20
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions-rust-lang/setup-rust-toolchain@v1
18+
- uses: Swatinem/rust-cache@v2
19+
- name: Install components
20+
run: |
21+
rustup component add rustfmt clippy
22+
cargo install cargo-machete
23+
- name: Check format
24+
run: cargo fmt --all -- --check
25+
- name: Check clippy
26+
run: cargo clippy --locked -- -D warnings
27+
- name: Check deps
28+
run: cargo machete
29+
test:
30+
name: test
31+
timeout-minutes: 120
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
with:
36+
submodules: recursive
37+
fetch-depth: 0
38+
- uses: actions-rust-lang/setup-rust-toolchain@v1
39+
- uses: Swatinem/rust-cache@v2
40+
- uses: extractions/setup-just@v2
41+
with:
42+
just-version: 1.40.0
43+
- name: Install Foundry
44+
uses: foundry-rs/foundry-toolchain@v1
45+
- name: Install kurtosis
46+
run: |
47+
sudo apt-get install jq
48+
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
49+
sudo apt update
50+
sudo apt remove kurtosis-cli
51+
sudo apt install kurtosis-cli=1.6.0 -V
52+
- name: Prepare optimism
53+
run: make chain
54+
- name: Start optimism
55+
run: |
56+
make devnet-up
57+
make set-port
58+
- name: Start preimage server
59+
run: make server-up &
60+
- name: Wait for chain to get ready
61+
run: make wait
62+
- name: Test
63+
run: make test

.gitignore

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ target/
55

66
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
77
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
8-
Cargo.lock
98

109
# These are backup files generated by rustfmt
1110
**/*.rs.bk
@@ -18,4 +17,12 @@ Cargo.lock
1817
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
1918
# and can be added to the global gitignore or merged into this file. For a more nuclear
2019
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
21-
#.idea/
20+
#.idea/
21+
22+
# Added by cargo
23+
24+
/target
25+
/.data
26+
*.bin
27+
*.json
28+
chain

0 commit comments

Comments
 (0)