Files
firezone/rust/windows-client/ci_check.bash
Reactor Scram 189a35f692 feat(windows): Tauri boilerplate and CI changes (#2742)
Trying to get CI/CD to produce firezone-windows-client.exe. Can't
remember if I need both a PR and a draft release or just the draft
release for that.

---------

Signed-off-by: Reactor Scram <ReactorScram@users.noreply.github.com>
Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
2023-11-30 19:50:43 +00:00

20 lines
619 B
Bash
Executable File

#!/usr/bin/env bash
# Usage: ./ci_check.bash
# Performs static checks similar to what the Github Actions workflows will do, so errors can be caught before committing.
# ReactorScram uses this in the Git pre-commit hook on her Windows dev system.
# Fail on any non-zero return code
set -euo pipefail
# Fail on yaml workflow errors
yamllint ../../.github/workflows/*
# Fail on Rust errors
pushd .. > /dev/null
cargo clippy --all-targets --all-features -p firezone-windows-client -- -D warnings
cargo fmt --check
cargo doc --all-features --no-deps --document-private-items -p firezone-windows-client
popd > /dev/null