-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ipdk-io/add-checkers
Set up code owners and standard checkers
- Loading branch information
Showing
4 changed files
with
106 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @ffoulkes @5abeel |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: "Check modified files" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
# If workflow is currently running, stop it and start a new one. | ||
group: check-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
#--------------------------------------------------------------------- | ||
# 1-markdownlint | ||
#--------------------------------------------------------------------- | ||
markdownlint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get list of changed files | ||
id: changed | ||
uses: tj-actions/changed-files@v45 | ||
with: | ||
files: | | ||
**.md | ||
- name: Lint markdown files | ||
if: steps.changed.outputs.any_changed == 'true' | ||
uses: nosborn/[email protected] | ||
with: | ||
files: ${{ steps.changed.outputs.all_changed_files }} | ||
config_file: .markdownlint.json | ||
|
||
#--------------------------------------------------------------------- | ||
# 2-bandit_check | ||
#--------------------------------------------------------------------- | ||
bandit_check: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check Python files | ||
uses: tj-actions/[email protected] | ||
with: | ||
targets: | | ||
**/**.py | ||
options: "-v" | ||
|
||
#--------------------------------------------------------------------- | ||
# 3-shellcheck | ||
#--------------------------------------------------------------------- | ||
shellcheck: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get list of changed files | ||
id: changed | ||
uses: tj-actions/changed-files@v45 | ||
with: | ||
files: | | ||
**.sh | ||
- name: Check for bash errors | ||
if: steps.changed.outputs.any_changed == 'true' | ||
run: | | ||
shellcheck ${{ steps.changed.outputs.all_changed_files }} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"MD013": false # allow line length > 80 | ||
} |