Skip to content

Commit

Permalink
👷 Move code quality checks to separate workflow and add codeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed Oct 31, 2024
1 parent c42cf93 commit c1faaf1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 18 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: Code quality checks

on:
push:
branches:
- master
paths:
- '**.py'
- '**.yml'
pull_request:
paths:
- '**.py'
- '**.yml'
workflow_dispatch:

jobs:
open-api-workflow-code-quality:
uses: maykinmedia/open-api-workflows/.github/workflows/code-quality.yml@v1
with:
python-version: '3.11'
node-version: '18'

django-settings-module: 'openklant.conf.ci'
django-secret-key: dummy
26 changes: 8 additions & 18 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,17 @@
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: Code quality checks
name: "CodeQL"

on:
push:
branches:
- master
paths:
- '**.py'
- '**.yml'
branches: [master]
pull_request:
paths:
- '**.py'
- '**.yml'
workflow_dispatch:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: '0 23 * * 6'

jobs:
open-api-workflow-code-quality:
uses: maykinmedia/open-api-workflows/.github/workflows/code-quality.yml@v1
with:
python-version: '3.11'
node-version: '18'

django-settings-module: 'openklant.conf.ci'
django-secret-key: dummy
open-api-workflow-code-analysis:
uses: maykinmedia/open-api-workflows/.github/workflows/code-analysis.yml@v1

0 comments on commit c1faaf1

Please sign in to comment.