Skip to content

Instantly share code, notes, and snippets.

View Madalosso's full-sized avatar

Otávio Migliavacca Madalosso Madalosso

View GitHub Profile
@Madalosso
Madalosso / gist:c2a3a5939d98589ca464b803791fc8ee
Created November 5, 2024 22:27
proposal improve build.sh
#!/bin/bash
set -e
####################################################################
# STEP 1: Build the project with the wasm32-unknown-unknown target #
####################################################################
# Set the stack size to 64KB
STACK_SIZE=65536
@Madalosso
Madalosso / main.rs
Created November 2, 2024 18:16
Rust exercicio trait+generics ex 8
trait DescriptionStd {
fn description(&self) -> String {
String::from("No Description")
}
}
struct Elemento<T> {
item: T,
}

git-pre-push-tests

Just a thought about test execution and git hooks

I’m creating this post to share a practice that I decided to adopt recently: ###Bind test execution to git pushes.

#####First of all: Git Hooks. Git hooks are a way to execute scripts every time some important action is executed on git. (git hooks). Today we will use the hook pre-push to execute a project's tests to make sure that everything is ok before actually execute the push to the repository.