-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'contrib/Mathieu4141_feedly/create-integration' into fee…
…dly/create-integration
- Loading branch information
Showing
856 changed files
with
19,684 additions
and
3,958 deletions.
There are no files selected for viewing
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
Validating CODEOWNERS rules …
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,77 @@ | ||
name: pre-commit | ||
on: pull_request | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
checks: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Install poetry | ||
uses: Gr1N/setup-poetry@v8 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
cache: 'poetry' | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Cache Pre commit | ||
id: cache-pre-commit | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: ${{ runner.os }}-pre-commit | ||
|
||
- name: run pre-commit | ||
run: | | ||
source .venv/bin/activate | ||
npm install --no-fund --no-audit | ||
demisto-sdk pre-commit -g --unit-test --validate --no-secrets --show-diff-on-failure --verbose | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() # always run even if the previous step fails | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
check_name: Unit Test Report | ||
report_paths: | | ||
**/Packs/**/Integrations/**/.report_pytest.xml | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
detailed_summary: true | ||
annotate_only: true | ||
|
||
- name: "Check coverage.xml exists" | ||
|
||
id: check_files | ||
uses: andstor/file-existence-action@v2 | ||
with: | ||
files: "coverage.xml" | ||
|
||
|
||
- name: Code Coverage Report | ||
if: steps.check_files.outputs.files_exists == 'true' | ||
uses: irongut/[email protected] | ||
with: | ||
filename: "coverage.xml" | ||
badge: true | ||
format: markdown | ||
output: both | ||
thresholds: '70 80' | ||
|
||
|
||
- name: Append coverage to summary | ||
if: always() | ||
id: append-coverage | ||
run: | | ||
cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY || echo "Missing coverage report" | ||
name: pre-commit | ||
on: pull_request | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
checks: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Install poetry | ||
uses: Gr1N/setup-poetry@v8 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
cache: 'poetry' | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Cache Pre commit | ||
id: cache-pre-commit | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: ${{ runner.os }}-pre-commit | ||
|
||
- name: run pre-commit | ||
run: | | ||
source .venv/bin/activate | ||
demisto-sdk pre-commit -g --unit-test --validate --no-secrets --show-diff-on-failure --verbose | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() # always run even if the previous step fails | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
check_name: Unit Test Report | ||
report_paths: | | ||
**/Packs/**/Integrations/**/.report_pytest.xml | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
detailed_summary: true | ||
annotate_only: true | ||
|
||
- name: "Check coverage.xml exists" | ||
|
||
id: check_files | ||
uses: andstor/file-existence-action@v2 | ||
with: | ||
files: "coverage.xml" | ||
|
||
|
||
- name: Code Coverage Report | ||
if: steps.check_files.outputs.files_exists == 'true' | ||
uses: irongut/[email protected] | ||
with: | ||
filename: "coverage.xml" | ||
badge: true | ||
format: markdown | ||
output: both | ||
thresholds: '70 80' | ||
|
||
|
||
- name: Append coverage to summary | ||
if: always() | ||
id: append-coverage | ||
run: | | ||
cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY || echo "Missing coverage report" |
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.