Skip to content

Commit

Permalink
Zeus daemon (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywonchung authored May 27, 2024
1 parent 1cc113f commit b2e3f55
Show file tree
Hide file tree
Showing 16 changed files with 3,852 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/zeusd_fmt_lint_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Check format, lint, and test for Zeusd

on:
push:
paths:
- '.github/workflows/zeusd_fmt_lint_test.yaml'
- 'zeusd/**'

# Jobs initiated by previous pushes get cancelled by a new push.
concurrency:
group: ${{ github.ref }}-zeusd-lint-and-test
cancel-in-progress: true

jobs:
format_lint_test:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
sparse-checkout: zeusd
- name: Install the Rust toolchain
run: rustup toolchain install stable --profile minimal
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
zeusd/target/
key: ${{ github.event.repository.name }}-${{ runner.os }}-cargo-check-v2
- name: Check format
run: cargo fmt --all --check
working-directory: zeusd
- name: Run clippy
run: cargo clippy --all -- -D warnings
working-directory: zeusd
- name: Run tests
run: cargo test
working-directory: zeusd
1 change: 1 addition & 0 deletions zeusd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit b2e3f55

Please sign in to comment.