Skip to content

Commit

Permalink
ci: trigger code analysis workflows by workflow_call of test-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
juarezr committed Mar 14, 2024
1 parent 641898d commit 6453683
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/codacy-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ name: Codacy Security Scan
on:
schedule:
- cron: '59 11 27 * *'
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
types: [opened, reopened, synchronize, ready_for_review]
# push:
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]
# types: [opened, reopened, synchronize, ready_for_review]
# workflow_run:
# workflows: [Test Changes]
# types:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ name: "CodeQL"
on:
schedule:
- cron: '59 10 27 * *'
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
types: [opened, reopened, synchronize, ready_for_review]
# push:
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]
# types: [opened, reopened, synchronize, ready_for_review]
# workflow_run:
# workflows: [Test Changes]
# types:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,11 @@ jobs:
run: |
cd docs
sphinx-build -W -b singlehtml -d ../build/doctrees . ../build/singlehtml
call-workflow-codeql:
needs: test-source-code
uses: ./.github/workflows/codeql-analysis.yml

call-workflow-codacity:
needs: test-source-code
uses: ./.github/workflows/codacy-analysis.yml

0 comments on commit 6453683

Please sign in to comment.