-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1cc113f
commit b2e3f55
Showing
16 changed files
with
3,852 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
Oops, something went wrong.