Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .clang-tidy

This file was deleted.

13 changes: 6 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Shell scripts and the bash-parsed integration-test case lists must keep LF
# endings so they run under bash, including MSYS2/Git-Bash on Windows where
# core.autocrlf may rewrite them to CRLF (which breaks `#!/bin/bash` and adds
# stray \r to parsed lines such as the case names in CASES_*.txt).
*.sh text eol=lf
CASES_*.txt text eol=lf

# Export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.gitmodules export-ignore
.pre-commit-config.yaml export-ignore
.github/ export-ignore

# Line break
* text=auto eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
51 changes: 51 additions & 0 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Precommit

on:
workflow_dispatch:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Precommit
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
# We will handle submodules manually after fixing ownership
submodules: 'false'

- name: Update submodules
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git submodule update --init --recursive

- name: Configure precommit server
run: |
cd tools/precommit
./start_local_server.sh &

- name: Wait for precommit server
run: |
for i in {1..200}; do
if curl -fs -o /dev/null http://127.0.0.1:8080/ 2>/dev/null; then
echo "precommit server is ready"
exit 0
fi
sleep 1
done
echo "precommit server did not become ready" >&2
exit 1
Comment thread
Growl1234 marked this conversation as resolved.

- name: Run precommit
env:
ABACUS_PRECOMMIT_SERVER: "http://127.0.0.1:8080"
continue-on-error: true
run: |
./tools/precommit/precommit.py --no-cache

Loading
Loading