ares/.github/workflows/ares-shared.yml
2023-10-10 21:55:47 -06:00

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