diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a88d49ae..31a4f0de 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 ARG debian_version=slim-bookworm -ARG rust_version=1.70.0 +ARG rust_version=1.71.0 FROM rust:${rust_version}-${debian_version} ARG DEBIAN_FRONTEND=noninteractive diff --git a/test.sh b/test.sh new file mode 100755 index 00000000..0d6bb291 --- /dev/null +++ b/test.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +set -e + +# this script runs the tests and checks that also run as part of the`test.yml` github action workflow + +cargo fmt --all -- --check +cargo clippy -p librespot-core --no-default-features +cargo clippy -p librespot-core + +cargo hack clippy --each-feature -p librespot-discovery +cargo hack clippy --each-feature -p librespot-playback +cargo hack clippy --each-feature + +cargo build --workspace --examples +cargo test --workspace +cargo check -p librespot-core --no-default-features +cargo check -p librespot-core +cargo hack check --no-dev-deps --each-feature -p librespot-discovery +cargo hack check --no-dev-deps --each-feature -p librespot-playback +cargo hack check --no-dev-deps --each-feature