generic-array-storage/.forgejo/workflows/build.yml
Dzuchun 0395393da7
Some checks failed
Build and Test / run_tests (push) Failing after 1m49s
Spellcheck / spellcheck (push) Failing after 7m0s
UB test / run_miri (push) Successful in 1m32s
Documentation / build_docs (push) Failing after 3s
Documentation / deploy_github_pages (push) Has been skipped
is this a correct gh actions url?
2025-12-22 16:28:52 +00:00

44 lines
980 B
YAML

# initial source: https://gist.github.com/domnikl/ccb8d0b82056fbe5cf7f4f145ac7f44b
name: Build and Test
on:
push:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install rustup
uses: https://github.com/actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: cargo,rustfmt,clippy
- name: install check-all-fetures
run: cargo install cargo-all-features
- name: cargo check
env:
RUSTFLAGS: -D warnings
run: cargo check-all-features
- name: rustfmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --all --tests -- -D warnings
- name: cargo test
run: cargo test-all-features
- name: cargo test on release
run: cargo test-all-features --release