Skip to content

Commit eea4f83

Browse files
authored
Merge pull request #1 from karnotxyz/init
Init
2 parents 5490788 + eaf571f commit eea4f83

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+7110
-0
lines changed

.env.example

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
HOST=
2+
PORT=
3+
DATABASE_URL=
4+
MADARA_RPC_URL=
5+
DA_LAYER=
6+
7+
# Ethereum
8+
ETHEREUM_RPC_URL=
9+
MEMORY_PAGES_CONTRACT_ADDRESS=
10+
11+
# MongoDB connection string
12+
MONGODB_CONNECTION_STRING
13+
14+
# SQS
15+
AWS_ACCESS_KEY_ID=
16+
AWS_SECRET_ACCESS_KEY=

.github/.DS_Store

6 KB
Binary file not shown.

.github/workflows/linters-cargo.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Task - Linters Cargo
3+
4+
on:
5+
workflow_dispatch:
6+
workflow_call:
7+
8+
jobs:
9+
cargo-lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
# selecting a toolchain either by action or manual `rustup` calls should happen
15+
# before the plugin, as the cache uses the current rustc version as its cache key
16+
- run: rustup show
17+
18+
- uses: Swatinem/rust-cache@v2
19+
- name: Format and clippy
20+
run: |
21+
cargo fmt -- --check
22+
cargo clippy --no-deps -- -D warnings
23+
cargo clippy --tests --no-deps -- -D warnings

.github/workflows/linters.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Task - Linters
3+
4+
on:
5+
workflow_dispatch:
6+
workflow_call:
7+
8+
jobs:
9+
prettier:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Run prettier
14+
run: |-
15+
npx prettier --check .
16+
17+
markdown-lint:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: avto-dev/markdown-lint@v1
22+
with:
23+
config: "./.markdownlint.json"
24+
args: "."
25+
ignore: "./target"
26+
27+
toml-lint:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout toml files
31+
uses: actions/checkout@v3
32+
- name: Run toml check
33+
run: npx @taplo/cli fmt --config ./taplo/taplo.toml --check

.github/workflows/pull-request.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Workflow - Pull Request
3+
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
branches: [main]
8+
push:
9+
branches: [main]
10+
11+
jobs:
12+
linters:
13+
name: Run linters
14+
uses: ./.github/workflows/linters.yml
15+
16+
rust_build:
17+
name: Build Rust project
18+
uses: ./.github/workflows/rust-build.yml
19+
20+
linters_cargo:
21+
name: Run Cargo linters
22+
uses: ./.github/workflows/linters-cargo.yml
23+
needs: rust_build

.github/workflows/rust-build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Task - Build Rust
3+
4+
on:
5+
workflow_dispatch:
6+
workflow_call:
7+
8+
jobs:
9+
rust_build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
# selecting a toolchain either by action or manual `rustup` calls should happen
15+
# before the plugin, as the cache uses the current rustc version as its cache key
16+
- run: rustup show
17+
18+
- uses: Swatinem/rust-cache@v2
19+
20+
- name: Build the project
21+
run: |
22+
cargo build --release --workspace

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/target
2+
.env
3+
.idea
4+
.DS_Store

.markdownlint.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"MD033": false,
3+
"MD041": false,
4+
"MD045": false,
5+
"MD003": false,
6+
"MD013": {
7+
"code_blocks": false
8+
}
9+
}

0 commit comments

Comments
 (0)