mirror of
https://github.com/urbit/ares.git
synced 2024-12-24 13:55:23 +03:00
43 lines
933 B
YAML
43 lines
933 B
YAML
on:
|
|
workflow_call:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: rust/ares
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: 'ubuntu-latest'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
# Makes it easier to determine why CI might differ from local linter/build
|
|
#
|
|
- name: Version
|
|
run: rustc --version
|
|
|
|
- name: Format
|
|
run: cargo fmt --check
|
|
|
|
# See clippy linter docs: https://github.com/rust-lang/rust-clippy
|
|
#
|
|
# First linter is set to fail for all warnings, then ignored warnings are
|
|
# explicitly listed
|
|
#
|
|
- name: Lint
|
|
run: |
|
|
cargo clippy \
|
|
--all-targets \
|
|
--no-deps \
|
|
-- -D warnings \
|
|
-A clippy::missing_safety_doc
|
|
|
|
- name: Build
|
|
run: cargo build --release --verbose --features check_all
|
|
|
|
- name: Run tests
|
|
run: cargo test --verbose -- --test-threads=1
|