Skip to content

Commit

Permalink
Scaffold initial light client crates and IBC cairo contracts #22
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani authored Jul 18, 2024
2 parents 65808b6 + 55ccd20 commit 4a080b5
Show file tree
Hide file tree
Showing 41 changed files with 2,946 additions and 1 deletion.
57 changes: 57 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Linting
on:
pull_request:
paths:
- .github/workflows/lint.yaml
- contracts/**
- light-client/**
- "**/Cargo.toml"
- "**/Cargo.lock"
- justfile
- README.md

push:
tags:
- v[0-9]+.*
branches:
- "release/*"
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }}

env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 1
CARGO_PROFILE_RELEASE_DEBUG: 1
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10

jobs:
lint:
name: Check Styles
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchains
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- name: Install Taplo
uses: baptiste0928/cargo-install@v3
with:
crate: taplo-cli
- name: Install Scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.6.5"
- name: Install Just
uses: extractions/setup-just@v1
- name: Run linters
run: just lint
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
corelib/
target/

# vscode
.vscode/
8 changes: 8 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"default": true,
"MD013": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md013---line-length
"MD024": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md024---multiple-headings-with-the-same-content
"MD033": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md033---inline-html
"MD036": false, // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md036---emphasis-used-instead-of-a-heading
"MD041": false // https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md041---first-line-in-a-file-should-be-a-top-level-heading
}
Loading

0 comments on commit 4a080b5

Please sign in to comment.