Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
MAINNET_RPC_URL=
ETHERSCAN_API_KEY=
DEPLOYMENT_PRIVATE_KEY=
OPTIMISM_SEPOLIA_RPC_URL=
63 changes: 63 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: rust

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- name: test
run: cargo test --workspace --all-features

clippy:
name: clippy
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.75.0
components: clippy
- name: cargo clippy
run: cargo clippy --workspace --all-features -- -D warnings

udeps:
name: udeps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- name: install udeps
run: cargo install --git https://github.com/est31/cargo-udeps --locked
- name: cargo udeps
run: cargo +nightly udeps

fmt:
name: fmt
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt
- name: cargo fmt
run: cargo +nightly fmt --all -- --check
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@
cache
out
optimized-out

# Rust
kit/target
target

# VSCode
.vscode
.env
Loading