#!/usr/bin/env bash

set -e
set -x

if rg "FIXME"; then
  echo "pre-push hook failed: FIXME not allowed"
  exit 1
fi
export RUSTFLAGS="-D warnings"
cargo clippy --all-features
cargo test --all-features
yamllint --no-warnings .github/workflows/ci.yml

exit 0
