Skip to content

Commit cd82d83

Browse files
committed
Add lint to GHA
1 parent 8a42226 commit cd82d83

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,23 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v4
16+
- uses: cpp-linter/cpp-linter-action@v2
17+
id: linter
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
with:
21+
style: file
22+
# The following value will only update a single comment
23+
# in a pull request's thread. Set it to false to disable the comment.
24+
# Set it to true to post a new comment (and delete the old comment).
25+
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}
26+
- name: Fail fast?!
27+
if: steps.linter.outputs.checks-failed > 0
28+
run: echo "Some files failed the linting checks!" || exit 1
1629
- run: |
1730
./build.sh
1831
- name: Upload
19-
uses: actions/upload-artifact@v3
32+
uses: actions/upload-artifact@v4
2033
with:
2134
name: ugrep-indexer
2235
path: bin/ugrep-indexer

0 commit comments

Comments
 (0)