drone-pre-commit/tests/steps.sh
Ian Fijolek 6481b89b0c Add tests
These aren't run on drone yet as there is no pre-commit plugin!
2020-09-08 10:14:06 -07:00

10 lines
243 B
Bash
Executable File

#! /bin/bash
set -ex
# These simulate commands added to a pipeline step
wget -L -O /usr/bin/hadolint https://github.com/hadolint/hadolint/releases/download/v1.18.0/hadolint-Linux-x86_64
chmod +x /usr/bin/hadolint
pre-commit run --all-files