Skip to content

Instantly share code, notes, and snippets.

@wmnnd
Created January 17, 2023 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wmnnd/791b1880e0122039d9c8f5a9089f8958 to your computer and use it in GitHub Desktop.
Save wmnnd/791b1880e0122039d9c8f5a9089f8958 to your computer and use it in GitHub Desktop.
Use dprint check in Alpine-based CI pipeline
export DPRINT_INSTALL="$HOME/.dprint"
mkdir -p "$DPRINT_INSTALL/bin"
curl -fsSL https://github.com/dprint/dprint/releases/download/0.34.1/dprint-x86_64-unknown-linux-musl.zip -o "$DPRINT_INSTALL/bin/dprint.zip"
unzip "$DPRINT_INSTALL/bin/dprint.zip" -d "$DPRINT_INSTALL/bin/"
chmod +x "$DPRINT_INSTALL/bin/dprint"
export PATH="$PATH:$DPRINT_INSTALL/bin"
dprint check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment