Skip to content

Commit

Permalink
added pre-commit plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Sep 11, 2024
1 parent 3a5cd59 commit bbb880c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .buildkite/heartbeat/heartbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,25 @@ env:
# Other deps
ASDF_MAGE_VERSION: 1.15.0
ASDF_NODEJS_VERSION: 18.17.1
ASDF_PYTHON_VERSION: 3.10.9

# Unit tests
RACE_DETECTOR: "true"
TEST_COVERAGE: "true"

steps:
- group: "Pre-commit"
steps:
- label: "Pre-commit"
command: |
pre-commit run --from-ref origin/HEAD --to-ref HEAD --show-diff-on-failure
plugins:
- elastic/pre-commit#v1.0.1
agents:
image: "docker.elastic.co/ci-agent-images/ubuntu-build-essential:latest"
cpu: "4000m"
memory: "8Gi"

- group: "Check/Update"
key: "heartbeat-check-update"

Expand Down
14 changes: 7 additions & 7 deletions .buildkite/hooks/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ PR_COMMIT="${BUILDKITE_COMMIT}"
PR_ID=${BUILDKITE_PULL_REQUEST}
MERGE_BRANCH="pr_merge_${PR_ID}"

checkout_merge "${TARGET_BRANCH}" "${PR_COMMIT}" "${MERGE_BRANCH}"

echo "--- Commit information"
git --no-pager log --format=%B -n 1

# Ensure buildkite groups are rendered
echo ""
#checkout_merge "${TARGET_BRANCH}" "${PR_COMMIT}" "${MERGE_BRANCH}"
#
#echo "--- Commit information"
#git --no-pager log --format=%B -n 1
#
## Ensure buildkite groups are rendered
#echo ""

0 comments on commit bbb880c

Please sign in to comment.