mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 19:49:04 +08:00
improvement: introduce Super-Linter actions to check style for shell script, dockerfile and yaml files (#1966)
This commit is contained in:
parent
853cdd741f
commit
c32c177e15
1
.github/ISSUE_TEMPLATE/document_issue.yml
vendored
1
.github/ISSUE_TEMPLATE/document_issue.yml
vendored
@ -7,6 +7,7 @@ body:
|
|||||||
attributes:
|
attributes:
|
||||||
label: Self Checks
|
label: Self Checks
|
||||||
description: "To make sure we get to you in time, please check the following :)"
|
description: "To make sure we get to you in time, please check the following :)"
|
||||||
|
options:
|
||||||
- label: I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones.
|
- label: I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones.
|
||||||
required: true
|
required: true
|
||||||
- label: I confirm that I am using English to file this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)).
|
- label: I confirm that I am using English to file this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)).
|
||||||
|
2
.github/ISSUE_TEMPLATE/help_wanted.yml
vendored
2
.github/ISSUE_TEMPLATE/help_wanted.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
name: "🤝 Help Wanted"
|
name: "🤝 Help Wanted"
|
||||||
description: "Request help from the community" [please use English :)]
|
description: "Request help from the community [please use English :)]"
|
||||||
labels:
|
labels:
|
||||||
- help-wanted
|
- help-wanted
|
||||||
body:
|
body:
|
||||||
|
1
.github/linters/.hadolint.yaml
vendored
Normal file
1
.github/linters/.hadolint.yaml
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
failure-threshold: "error"
|
15
.github/linters/.yaml-lint.yml
vendored
Normal file
15
.github/linters/.yaml-lint.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
brackets:
|
||||||
|
max-spaces-inside: 1
|
||||||
|
document-start: disable
|
||||||
|
indentation:
|
||||||
|
level: warning
|
||||||
|
line-length: disable
|
||||||
|
new-line-at-end-of-file:
|
||||||
|
level: warning
|
||||||
|
trailing-spaces:
|
||||||
|
level: warning
|
20
.github/workflows/style.yml
vendored
20
.github/workflows/style.yml
vendored
@ -8,8 +8,13 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- deploy/dev
|
- deploy/dev
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: dep-${{ github.head_ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
name: ESLint and SuperLinter
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -32,3 +37,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd ./web
|
cd ./web
|
||||||
yarn run lint
|
yarn run lint
|
||||||
|
|
||||||
|
- name: Super-linter
|
||||||
|
uses: super-linter/super-linter/slim@v5
|
||||||
|
env:
|
||||||
|
BASH_SEVERITY: warning
|
||||||
|
DEFAULT_BRANCH: main
|
||||||
|
ERROR_ON_MISSING_EXEC_BIT: true
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
IGNORE_GENERATED_FILES: true
|
||||||
|
IGNORE_GITIGNORED_FILES: true
|
||||||
|
VALIDATE_BASH: true
|
||||||
|
VALIDATE_BASH_EXEC: true
|
||||||
|
VALIDATE_GITHUB_ACTIONS: true
|
||||||
|
VALIDATE_DOCKERFILE_HADOLINT: true
|
||||||
|
VALIDATE_YAML: true
|
||||||
|
0
api/docker/entrypoint.sh
Normal file → Executable file
0
api/docker/entrypoint.sh
Normal file → Executable file
2
web/docker/entrypoint.sh
Normal file → Executable file
2
web/docker/entrypoint.sh
Normal file → Executable file
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user