~claxxx/yafig

59b46bf9ab99b68bf7513c8cef796f85ae1f323e — claxbot 2 months ago cde336a
ci
1 files changed, 34 insertions(+), 0 deletions(-)

A .builds/rust_fedora.yaml
A .builds/rust_fedora.yaml => .builds/rust_fedora.yaml +34 -0
@@ 0,0 1,34 @@
image: fedora/40
packages:
  - nodejs
  - npm
  - rsync
sources:
  - https://git.sr.ht/~claxxx/yafig
tasks:
  - install_rust: |
      curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
      . "$HOME/.cargo/env"
  - build: |
      cd yahig
      cargo build
  - lint: |
      cd yahig
      rustup component add clippy
      cargo clippy -- -D warnings
  - format: |
      cd yahig
      rustup component add rustfmt
      cargo fmt -- --check
  - test: |
      cd yahig
      cargo test
  - coverage: |
      cd yahig
      cargo install cargo-tarpaulin
      cargo tarpaulin --ignore-tests
  - audit: |
      cd yahig
      cargo install cargo-audit
      cargo audit --ignore RUSTSEC-2023-0071