forked from Dolibarr/dolibarr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19.0.1
- Loading branch information
Showing
140 changed files
with
793 additions
and
1,094 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ jobs: | |
pre-commit: | ||
runs-on: ubuntu-latest | ||
env: | ||
LOG_TO_CS: .github/logToCs.py | ||
RAW_LOG: pre-commit.log | ||
CS_XML: pre-commit.xml | ||
steps: | ||
|
@@ -37,7 +36,7 @@ jobs: | |
with: | ||
cache: pip | ||
python-version: "3.11" | ||
- run: python -m pip install pre-commit regex | ||
- run: python -m pip install pre-commit | ||
# Restore previous cache of precommit | ||
- uses: actions/cache/restore@v4 | ||
with: | ||
|
@@ -102,19 +101,12 @@ jobs: | |
pre-commit run --hook-stage manual -a php-cs-with-cache | tee -a ${RAW_LOG} | ||
ls -l ~/.cache/pre-commit/ | ||
# If error, we convert log in the checkstyle format | ||
- name: Convert Raw Log to CheckStyle format | ||
if: ${{ failure() }} | ||
run: | | ||
python ${LOG_TO_CS} ${RAW_LOG} ${CS_XML} | ||
# Annotate the git sources with the log messages | ||
- name: Annotate Source Code with Messages | ||
uses: staabm/annotate-pull-request-from-checkstyle-action@v1 | ||
- name: Convert Raw Log to Annotations | ||
uses: mdeweerd/[email protected] | ||
if: ${{ failure() }} | ||
with: | ||
files: ${{ env.CS_XML }} | ||
notices-as-warnings: true # optional | ||
prepend-filename: true # optional | ||
in: ${{ env.RAW_LOG }} | ||
|
||
# Save the precommit cache | ||
- uses: actions/cache/save@v4 | ||
if: ${{ ! cancelled() }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.