#!/bin/sh if [ $(git rev-parse --abbrev-ref HEAD) != "main" ]; then exit 0 fi cd $(git rev-parse --show-toplevel) echo "Building docs" make -C docs txt make -C docs html echo "Running tests before commit to main" go test ./... cd -