Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip #1

Merged
merged 1 commit into from
Nov 7, 2024
Merged
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
50 changes: 50 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
push:
branches:
- master
merge_group:
pull_request:
branches:
- "**"
paths:
- "Cargo.toml"
- "Cargo.lock"
- "**.rs"
- ".github**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} # cancels previous runs on the same PR / commit group
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always

jobs:
rustfmt:
name: Rustfmt
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Check formatting
run: cargo +nightly fmt -- --check

clippy:
name: Clippy
needs: rustfmt
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Install Clang
run: sudo apt-get update && sudo apt-get install -y clang
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Clippy check
run: cargo clippy --all-targets --all-features -- -D warnings
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/debug/
/target/
**/*.rs.bk
*.pdb

.idea/
.vscode/
.fleet/
.venv

perf.data*
.scratch

.DS_Store

/zerostate.json
/zerostate.boc

config.json
global-config.json
keys.json
logger.json

/db/
/.temp/
Loading
Loading