FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
aider/.github/workflows/pre-commit.yml at main · githubhjs/aider · GitHub
githubhjs
aider
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
aider
/
.github
/
workflows
/
pre-commit.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
48 lines (48 loc) · 1.47 KB
Breadcrumbs
aider
/
.github
/
workflows
/
pre-commit.yml
Copy path
File metadata and controls
48 lines (48 loc) · 1.47 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name
:
pre-commit
on
:
pull_request
:
push
:
workflow_dispatch
:
jobs
:
pre-commit
:
runs-on
:
ubuntu-latest
env
:
RAW_LOG
:
pre-commit.log
CS_XML
:
pre-commit.xml
steps
:
-
run
:
sudo apt-get update && sudo apt-get install cppcheck uncrustify
if
:
false
-
uses
:
actions/checkout@v4
-
run
:
python -m pip install pre-commit
-
uses
:
actions/cache/restore@v4
with
:
path
:
~/.cache/pre-commit/
key
:
pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
-
name
:
Run pre-commit hooks
env
:
SKIP
:
no-commit-to-branch
run
:
|
set -o pipefail
pre-commit gc
pre-commit run --show-diff-on-failure --color=always --all-files | tee ${RAW_LOG}
-
name
:
Convert Raw Log to Checkstyle format (launch action)
uses
:
mdeweerd/logToCheckStyle@v2025.1.1
if
:
${{ failure() }}
with
:
in
:
${{ env.RAW_LOG }}
#
out: ${{ env.CS_XML }}
-
uses
:
actions/cache/save@v4
if
:
${{ ! cancelled() }}
with
:
path
:
~/.cache/pre-commit/
key
:
pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
-
name
:
Provide log as artifact
uses
:
actions/upload-artifact@v4
if
:
${{ ! cancelled() }}
with
:
name
:
precommit-logs
path
:
|
${{ env.RAW_LOG }}
${{ env.CS_XML }}
retention-days
:
2
Back
|
FazBrowse Home
|
New Git URL